Set identical password
Top  Previous  Next


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

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

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

[Init_Batch_Begin]
Data.Column.Fill 3,mypassword
[Init_Batch_End]

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

[Data_Begin]   
   yasale2      
   lineri2      
   jagjar2      
[Data_End]

About the script

·[Settings]: "BatchSettings.Delimiter=TAB" means that the <TAB> character is column delimiter in the [Data] section (it is possible to choose comma, semicolon or colon instead)  
·[Settings]: "BatchSettings.MarkerCol=4" means that the fourth column is used for markers and thus cannot be used for other data  
·[Batch]: "Account.Edit.Password %col2%,%col3%" means that accounts should be listed in column two and passwords in column three  

If we sum the above we get this [Data] section format: <TAB>AccountName<TAB>PassWord<TAB>Marker

What to modify in the script

·[Machines]: replace "\\FINANCE", "\\SALES1" etc. with the names of your machines  
·[Init]: replace "mypassword" with the password you like (you can also remove the entire [Init_batch] section and manually type passwords in column three)  
·[Data]: type accounts names in the second column  

How to run the script

·Click "Run batch" (CTRL+R)