The command for doing this is:
open start and click on RUN and type
net user accountname /time:
here my account name is john then
For example, “net user john/time:M-F, 08:00-17:00”
will only let the user john log in between 8 and 5 from Monday to Friday.
or
"net user john /times:M-F,8am-3pm;Sa,8am-1pm;Su,8am-10am"
For specific days use this (M,T,W,Th,F,Sa,Su).
The value in case of time:all = a user can login always and null = a user can never login.
Separate day and time with commas, and units of day and time with semicolons as above.Do not use spaces between time.
To turn off limitation use the following.
"net user accountname/times:all"
replace accountname with the name of the account you wish to change.


Posted in: 
0 comments:
Post a Comment