Set Logon Hours
Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 2012
Membership in Account Operators , Domain Admins , or Enterprise Admins , or equivalent, is the minimum required to complete this procedure. Review details about using the appropriate accounts and group memberships at http://go.microsoft.com/fwlink/?LinkId=83477.
To set logon hours using the Windows interface
To open Active Directory Users and Computers, click Start , click Control Panel , double-click Administrative Tools , and then double-click Active Directory Users and Computers .
To open Active Directory Users and Computers in Windows Server® 2012, click Start , type dsa.msc .
In the console tree, click Users .
- Active Directory Users and Computers\ domain node \Users
Right-click the user account, and then click Properties .
On the Account tab, click Logon Hours , and then set the permitted or denied logon hours for the user.
To perform this procedure, you must be a member of the Account Operators group, Domain Admins group, or Enterprise Admins group in Active Directory Domain Services (AD DS), or you must have been delegated the appropriate authority. As a security best practice, consider using Run as to perform this procedure.
Another way to open Active Directory Users and Computers is to click Start , click Run , and then type dsa.msc .
To modify the logon hours for multiple users, press and hold down CTRL, and then click each user. Right-click the selected users, and then click Properties . On the Account tab, click Logon Hours , and then set the permitted or denied logon hours for the user.
You can also perform the task in this procedure by using the Active Directory module for Windows PowerShell. To open the Active Directory module, click Start , click Administrative Tools , and then click Active Directory Module for Windows PowerShell .
To open the Active Directory module for Windows PowerShell in Windows Server 2012, open Server Manager , click Tools and then click Active Directory Module for Windows PowerShell .
For more information, see Set Logon Hours (http://go.microsoft.com/fwlink/?LinkId=138373). For more information about Windows PowerShell, see Windows PowerShell (http://go.microsoft.com/fwlink/?LinkID=102372).