Restrict A User’s Logon Hours On Windows XP

This tip is probably most useful for family computers with kids who use the computer and want to monitor/restrict their computer usage to some degree. Basically, you have to define (via command line) the hours that the user is allowed to login.

Go to Start > Run and type cmd. You can specify the hours in the following ways:

First, this limits the user “bobby” to login Monday – Friday between 8am and 5pm using military time:

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

This does the same as above, but using a 12-hour clock:

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

And here’s a more expressive command where you can mix and match and specify different times for different days:

net user bobby /time:M,4pm-7pm;T-TH,16:00-18:00;F-SU,11am-9pm

These commands restrict a user from logging on, however they do not force a logoff when a user is already logged in. These logon hours do not have an effect Administrator level accounts.

To remove the time restrictions, type this in the CMD window:

net user bobby /time:all

For the specifics, you can look at Microsoft’s official documentation of the /time switch.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: