Problem solve Get help with specific problems with your technologies, process and projects.

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 last published in February 2003

Dig Deeper on User passwords and network permissions

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.