• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Managing users in XP

snidy1

Golden Member
Is there a way to allow certain users to only be able to log in at certain times? I have two systems networked through a crossover cable, both running XP pro.
 
From the COMMAND PROMPT type one of the following:

Net user <username> /time:M-F,08:00-17:00
Net user <username> /time:M-F,8am-5pm
Net user <username> /time:M,4am-5pm;T,1pm- 3pm;W-F,8:00-17:00
Net user <username> /time:all (allows user to always be able to log on)

<username> = retricted user name
You can adjust the hours anyway you wish in above examples
 
Bah. Im a tard. I forgot all about doing it from the command prompt. For some reason I just figured it was only an available option in a domain (but would have used command prompt there without hesitation...go figure)

Good answer guys.
 
Originally posted by: LiLithTecH
From the COMMAND PROMPT type one of the following:

Net user <username> /time:M-F,08:00-17:00
Net user <username> /time:M-F,8am-5pm
Net user <username> /time:M,4am-5pm;T,1pm- 3pm;W-F,8:00-17:00
Net user <username> /time:all (allows user to always be able to log on)

<username> = retricted user name
You can adjust the hours anyway you wish in above examples

Thank's. That worked, but is there a way to force them to log off when the time expires? If they're not loged in, they can't log on after the time expires, but if there loged on, they can still remane loged on until they log off.
 
This wouldn't be secure... but you could add a job to task scheduler for their accounts that logs out at the specified times.
 
Write a NET SEND batch file that have a warning message prior to logout time & run it as a service (see NT Resource Kit & use srvany.exe & edit registry).

Or, run net accounts /forcelogoff:minutes a service batch file.
 
Back
Top