Rename SamAccounts
Top  Previous  Next


This example changes the NT 3.51, NT4, Windows 2000 or XP "SamAccountName". Windows 2000 and 2003 server: see the example completely rename a Windows server 2000 account (all three names).

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

[Machines_Begin]
\\EDU12      NT PDC    
[Machines_End]

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

[Data_Begin]
   OldAccountName   NewAccountName   
[Data_End]