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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.