Series SamAccount name generator, random passwords
Top  Previous  Next


This example uses SamAccount commands and works on all Windows server versions - from NT 3.51 up to 2003. However, for Windows 2000 and 2003 you might want to use AD commands instead.

[Settings_Begin]
//User name Generator Settings
Generator.UserName.DestCol=2
Generator.Username.Series.Prefix=USR
Generator.Username.Series.Count=10

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

BatchSettings.Delimiter=TAB
Account.FullName.Col=1
Account.Password.Col=3
BatchSettings.MarkerCol=4
Account.Description.Col=6
Account.Expires=Never
[Settings_End]

[Machines_Begin]
\\EDU12      NT PDC    
[Machines_End]

[Batch_Begin]
Data.Loop   
Account.Create %col2%   
Data.Endloop   
[Batch_End]

[Data_Begin]
[Data_End]


How to use the script

·Change server name in the [Machines] section  
·Click "Action / Run username generator / Series"  
·Click "Action / Run password generator / Random"  
·Click "Run batch"