Use the net user command to limit the logon time of system users

Source: Internet
Author: User
Tags domain server

Tutorial on helping customers (www.bkjia.com)In the Windows 2000/2003 Server Domain Server, we can set the logon time for the domain account. But can this be implemented for single-host users and Windows XP users? The powerful "net user" command can fully meet your requirements.

Preparations

If you have already created a user account, skip this step. Right-click "my computer" and select the "manage" command from the pop-up menu, in the displayed "Computer Management" window, select "user" under "local users and groups" on the left and right-click the user. In the displayed menu, select "new user ", enter the user name and password.

Time Limit

Now we can set the logon time for the created account. In the run window, Enter CMD and press enter to open the Command Prompt window. Assume that the account name to be operated is abc, then we can enter net user abc/time: m-w. Abc indicates the specified account, m-w indicates the first letter of the week, and-indicates the 24-hour time, this indicates that the account abc allows logon from eight o'clock A.M. to from Monday to Wednesday. If there are multiple time periods, separate them with semicolons.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.