Ask the Expert

How can I restrict network logon hours in a workgroup setup?

How do you restrict the hours that people can log on to the network when using Windows 2000 and a workgroup instead of a domain?
To restrict logon hours for users with local accounts (accounts that reside in the local SAM database) you can use the net user command. For example, to set user Bob's hours on Monday through Friday to be the hours of 8 a.m. to 5 p.m., open a command prompt and enter the following command:
net user bob /times:monday-friday,8am-5pm

The syntax of the net user command can be found here.

You can find more helpful information (including more samples) in KB article 318714.

This was first published in February 2003

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: