Q

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

Dig deeper on User passwords and network permissions

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

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.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchVirtualDesktop

SearchWindowsServer

SearchExchange

Close