COVID-19 UPDATE: How Data Doctors is preparing & responding. Learn more >

How to control user logons by time?


Is there a way to restrict access to my Windows XP system based on the time of day?


This question was answered on March 19, 2004. Much of the information contained herein may have changed since posting.

Windows XP users can control logon times by using the 'net user' command at a command prompt

Here are a few examples:

net user johnsw /time:M-F,08:00-17:00

net user johnsw /time:M-F,8am-5pm

net user marysl /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00

net user johnsw /time:all (means this user can always log on)

1) Open a Command Prompt window

2) Enter the appropriate "net user" command for the user(s) you wish to control access for..

For more detailed usage of the 'net user' command, check out the Microsoft online documentation at:

Need Help with this Issue?

We help people with technology! It's what we do.
Schedule an Appointment with a location for help!


Posted by Student of Katharine Gibbs School - New York on March 19, 2004