Nov.GW.DL.AddObject
Top  Previous  Next


Adds GroupWise account to distribution list

Requirements
·NetWare client on the local machine, log on as admin  
·Novell controls  
·GroupWare client on the local machine  

Category
Novell

Script section
All

Nov.GW.DL.AddObject DomainDataBasePath, PostOffice, DLName, AccountName

DomainDataBasePath
Net path to domain database  

PostOffice
Name of postoffice  

DLName
Name of DL to which to add account  

AccountName
Name of GroupWise account to add to DL  

Example

Add GroupWise account "AccountName1" to DL "MyDL" on server "\\lisa"

Nov.GW.DL.AddObject \\lisa\sys\domdir, HQPO, MyDL, AccountName1

Full DL example
Batch:
·create MyDL and MyDL2 in OAK\MyOrg\MyOU\OU3  
·add OAK\MyOrg\MyOU\OU3\AccountName1-3 to MyDL and MyDL2  
Undo:
·remove OAK\MyOrg\MyOU\OU3\AccountName1-3 from MyDL and MyDL2  
·delete MyDL and MyDL2  

[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=8

SET NDRoot=OAK\MyOrg\MyOU
SET NDOU=OU3
SET NDOUPath=%NDRoot%\%NDOU%

SET GW_DomainDataBasePath=\\lisa\sys\domdir
SET GW_PostOffice=HQPO
[Settings_End]

[Batch_Begin]
Nov.GW.DL.Create %GW_DomainDataBasePath%, %GW_PostOffice%, %NDOUPath%, MyDL   
Nov.GW.DL.Create %GW_DomainDataBasePath%, %GW_PostOffice%, %NDOUPath%, MyDL2   
Data.Loop   
 Nov.GW.DL.AddObject %GW_DomainDataBasePath%, %GW_PostOffice%, MyDL, %col1%   
 Nov.GW.DL.AddObject %GW_DomainDataBasePath%, %GW_PostOffice%, MyDL2, %col1%   
Data.Endloop   
[Batch_End]

[Undo_Batch_Begin]
Data.Loop   
 Nov.GW.DL.RemoveObject %GW_DomainDataBasePath%, %GW_PostOffice%, MyDL, %col1%   
 Nov.GW.DL.RemoveObject %GW_DomainDataBasePath%, %GW_PostOffice%, MyDL2, %col1%   
Data.Endloop   
Nov.GW.DL.Delete %GW_DomainDataBasePath%, %GW_PostOffice%, MyDL   
Nov.GW.DL.Delete %GW_DomainDataBasePath%, %GW_PostOffice%, MyDL2   
[Undo_Batch_End]

[Data_Begin]
AccountName1
AccountName2
AccountName3
[Data_End]