Then go to Settings, Control Panel, Scheduled Tasks and add a scheduled task to run shutdown.exe at your scheduled time. Then edit the task and add the switch -l to do a logoff (c:\whateverdirectory\shutdown.exe -l).
To restrict a users logon hours use the net user command. These commands are used fromt the Command Prompt.
Below are some examples:
net user brendon /time:M-F,08:00-17:00
net user brendon /time:M-F,8am-5pm
net user jane /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00
net user matt /time:all (this one means this user can always log on)
Note:You can only restrict when a user can log on to the system. On a stand alone computer, there is no way, currently, to force a user to log off when their hours expire.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.