To restrict a users logon hours , use the net user command. These commands are used from the Command Prompt.
Check out some examples-
1 - net user Core /time:M-F,08:00-17:00
2 - net user Core /time:M-F,8am-5pm
3 - net user Core /time:M,4am-5pm;T,1pm-3pm;
4 - net user Core /time:all (this one means this user can always log on)
(where Core is username)
Note: You must have administrator privileges to access and use net tool. Also you can only restrict when a user can log on to the system. On a stand alone computer, there is no way to force a user to log off when their hours expire, without a third party script or software.
If you are running Windows 7/vista, and don't have administrator account active, type "cmd" in start menu search bar without quotes, when cmd is shown in result above , right click on cmd and click on "Run as Administrator" Now you have full administrator privileges.
Follow us on Twitter @InsecureGeek