Edit existing accounts
Top  Previous  Next


[Settings_Begin]
BatchSettings.Delimiter=TAB
BatchSettings.MarkerCol=4
Account.LogonHours=guest
[Settings_End]

[Machines_Begin]
\\Machinename
[Machines_End]

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

[Data_Begin]
Full Name   SamAccountName
[Data_End]


·This example replaces current logon hours setting with the setting of the guest account. To edit other properties, replace the line "Account.LogonHours=guest" in the [Settings] section with one or many other SamAccount settings.  
·Replace "\\Machinename" in the [Machines] section with the name of your server, fill the [Data] section with SamAccountNames - see Importing data to the [Data] section, click "run batch".