Learn What IT Pros Need to Know About Windows 11 - August 26th at 1 PM ET! Learn What IT Pros Need to Know About Windows 11 - August 26th at 1 PM ET!
Windows Client OS

Set Local User Logon Hours in Windows XP

How do I restrict a User’s Logon hours on my Windows XP machine?

Local and domain users can be restricted from logging on to the computer (or to the network) at specific hours or days. You can only restrict when a user can log on to the system. On a stand alone computer (one that is not a part of a domain) you cannot force a user to log off when their hours expire.

Sponsored Content

Read the Best Personal and Business Tech without Ads

Staying updated on what is happening in the technology sector is important to your career and your personal life but ads can make reading news, distracting. With Thurrott Premium, you can enjoy the best coverage in tech without the annoying ads.

Although domain administrators have an option in the Active Directory Users & Computers GUI to limit the user’s logon hours, local administrators do not have that option in the Local Users and Groups console.

In order to do that you’ll need to use the NET USER command.

Some examples would be:

net user danielp /time:S-F,08:00-18:00net user danielp /time:S-F,8am-6pmnet user danielp /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00net user danielp /time:all

Open a Command Prompt window.

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

Note: This command also works in Windows NT 4.0 and W2K.

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

Register for Advanced Microsoft 365 Day!

GET-IT: Advanced Microsoft 365 1-Day Virtual Conference - Live August 24th!

Join us on Tuesday, August 24th and hear from Microsoft MVPs and industry experts about how to take advantage of Microsoft 365 at a technical level and dive deep into the features and functionality that will make your environment more secure and compliant.

RSVP Now

Sponsored By