Edit Netware accounts
Top  Previous  Next


Example 1 - change profile

This script searches all accounts in the tree OAK for the profile "MyProfile" and shows matching accounts in a dialog with continue and abort buttons. If the continue button is pressed the script replaces the profile "MyProfile" with "NewProfile". Accounts with other profiles than "MyProfile" are not affected.

[Settings_Begin]
BatchSettings.Delimiter=;
BatchSettings.MarkerCol=12
BatchSettings.MarkersAutoRemove=Yes

SET OldProfile=*MyProfile
SET NewProfile=\\OAK\MyOrg\MyOu\NewProfile
[Settings_End]

[Init_Batch_Begin]
Data.Get.ND.Find OAK,user,profile=%OldProfile%,yes,NDSpath§1§   
Data.Show
[Init_Batch_End]

[Batch_Begin]
Data.Loop   
 Nov.DS.Object.SetProperty %col1%, Profile, %NewProfile%   
Data.Endloop   
[Batch_End]

[Data_Begin]
[Data_End]


Example 2 - disable accounts where email address ends with "@acme.com"

This script searches all accounts in the tree OAK for email addresses that ends with "@acme.com" and shows matching accounts in a dialog with continue and abort buttons. If the continue button is pressed the script disables matching accounts. Accounts without email addresses or email addresses that does not end with "@acme.com" are not affected.

[Settings_Begin]
BatchSettings.Delimiter=;
BatchSettings.MarkerCol=12
BatchSettings.MarkersAutoRemove=Yes
[Settings_End]

[Init_Batch_Begin]
Data.Get.ND.Find OAK\MyOrg\MyOU,user,internet eMail address=*@acme.com,yes,NDSpath§1§internet eMail address§2§   
Data.Show   
[Init_Batch_End]

[Batch_Begin]
Data.Loop   
 Nov.DS.Object.SetProperty %col1%, Login Disabled, Yes   
Data.Endloop   
[Batch_End]

[Data_Begin]
[Data_End]