Set logon hours
Top  Previous  Next


The logon hours setting would be quite hard to specify in numbers so what you do is to copy the logon hours setting from an existing account.

First use the user manager or MMC GUI editor to set logon hours for an existing "template" account. Then specify the template account with the Account.LogonHours setting.

Example - copy logon hours setting from guest account

[Settings_Begin]
BatchSettings.Delimiter=TAB
Account.FullName.Col=1
Account.Password.Col=3
BatchSettings.MarkerCol=4
Account.Description.Col=6
Account.LogonHours=guest
[Settings_End]

[Machines_Begin]
\\EDU12      NT PDC    
[Machines_End]

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

[Data_Begin]
Full Name1   USR1   Password1      Comment
Full Name2   USR2   Password2      Comment
[Data_End]