Set random password
Top  Previous  Next


This example demonstrates how to set random password for 15 accounts - three local accounts ("yasale2", "lineri2" etc.) on five NT workstations ("\\finance", "\\sales" etc.). All "yasale2" accounts will get the same password on all machines, all "lineri2" accounts will get the same password on all machines etc.

[Settings_Begin]
//Password Generator Settings
Generator.Password.DestCol=3
Generator.Password.Random.Len=8
Generator.Password.Random.Chars=0123456789abcdef

BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
[Settings_End]

[Machines_Begin]
\\FINANCE
\\SALES1
\\SALES2
\\BOSS
\\STEVE
[Machines_End]

[Batch_Begin]
Data.Loop   
Account.Edit.Password %col2%,%col3%   
Data.EndLoop   
[Batch_End]

[Data_Begin]   
   yasale2      
   lineri2      
   jagjar2      
[Data_End]


[Data] section format

What to modify in the script

·[Settings]: edit password format by editing the password generator settings  
·[Machines]: replace "\\FINANCE", "\\SALES1" etc. with the names of your machines  
·[Data]: type accounts names in the second column  

How to run the script

·Click "Action / Run password generator / Random" to generate random passwords  
·Click "Run batch" (CTRL+R)  

To generate passwords automatically - insert this code above the [Batch] section

[Init_Batch_Begin]
Data.Passwords.Generate Random   
[Init_Batch_End]


To view accounts and passwords before the script start - add a "Data.Show" command to the [Init_Batch] section

[Init_Batch_Begin]
Data.Passwords.Generate Random   
Data.Show   
[Init_Batch_End]