Nov.GW.Account.SetProperty
Top  Previous  Next


Sets or edits GroupWise account properties

Notice: address book properties are set or edited in both GW and NDS; it is not necessary to use Nov.DS.Object.SetProperty for address book properties that are set with Nov.GW.Account.SetProperty.

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.Account.SetProperty
DomainDataBasePath, PostOffice, AccountName, PropertyName, Value

DomainDataBasePath
Net path to domain database  

PostOffice
Name of postoffice  

AccountName
Name of GroupWise account to set property for  

PropertyName
Name of property to set, see table 1 below  

Value
New value for property  


Table 1 - Address book properties
PropertyName
Property in address book
Comment
GivenName
Given name

Surname
Last name

PhoneNumber
Telephone Number

Department
Department

Title
Title

FaxNumber
Facsimile Telephone Number



Table 2 - Other properties
PropertyName
Comment
MailboxExpDate
Mailbox expiration date, format: YYYY-MM-DD or "Disable" (omit quotes) to uncheck "Enable".
Visibility
Visibility, value: 1-4.
1 = Post office, 2 = System, 3 = Domain, 4 = None.


Example 1
Set various properties for three accounts

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

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

[Batch_Begin]
Data.Loop   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, GivenName, %col2%   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, Surname, %col3%   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, PhoneNumber, %col4%   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, Department, %col5%   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, Title, %col6%   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, FaxNumber, %col7%   
Data.Endloop   
[Batch_End]

[Data_Begin]
AccountName1   Steve   Smith   230-118-38923   Sales   Advisor   230-118-38990   
AccountName2   Susan   Jones   230-930-25711   Finance   Accountant   230-930-25799
AccountName3   Lisa   Rogers   230-118-38901   Sales   Technician   230-118-38990   
[Data_End]

Example 2
Batch: set mailbox expiration date to March 24, 2006
Undo: uncheck "Enable" expiration date

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

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

[Batch_Begin]
Data.Loop   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, MailboxExpDate, 2006-03-24
Data.Endloop   
[Batch_End]

[Undo_Batch_Begin]
Data.Loop   
 Nov.GW.Account.SetProperty %GW_DomainDataBasePath%, %GW_PostOffice%, %col1%, MailboxExpDate, Disable   
Data.Endloop   
[Undo_Batch_End]

[Data_Begin]
AccountName2                     
AccountName3                     
AccountName1                     
[Data_End]