If you have a network system then you can restrict a users logon hours with ‘net user’ command. Pay attention to these examples, and you will know how to use it :
- net user john /time:M-F,08:00-17:00
- net user larry /time:M-F,8am-5pm
- net user angel /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00
- net user mike /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.