Alternative Usage of Net User Commands in XP Systems

  
        While helping the user maintain the network, I stumbled upon a Net User command in the NET series command in the Windows XP operating system. After careful scrutiny and rehearsal, Net User can not only be used to add or modify users or display user information, but also set different restrictions on users. It is much better than the "user account" in the control panel. You may wish to try .

The Net User command is a DOS
command that must be run in MS-DOS
mode under Windows XP, so first enter MS-DOS< Br>Mode: Select the sub-option "Command Prompt" of the "Accessories" option of the "Start" menu, or enter "cmd.exe" in the "Run" option of the "Start" menu (shortcut key is Win+R). Enter the MS-DOS
mode. The following features are based on this mode.

Create a normal new user

At the MS-DOS
prompt, enter the following command: "net user john 123 /add", press Enter. You can create a new user named "John" with a password of "123". The Add parameter indicates a new user.

It is worth noting that the username can have up to 20 characters and the password can have up to 127 characters.

Establish a user with limited login time

Use the following methods to control the computer usage time. For example, you need to create a John user account with a password of "123", login privileges from 8:00 am to 10:00 pm Monday to Friday, and 7:00 pm to 9:00 pm on weekends.

1. For the 12-hour system, type the following command: "net user john 123 /add /times:monday-friday,8AM-10PM;saturday-sunday,7PM-9PM", press Enter to confirm.

2. For the 24-hour system, type the following command: "net user john 123 /add /times:MF,8:00-22:00;Sa-Su,19:00-21:00", back The car is OK.

worth noting: Time added value is limited to 1 hour. For the Day value, the full name or abbreviation (ie, M, T, W, Th, F, Sa, Su) can be used. A 12 hour or 24 hour time representation can be used. For the 12 hour representation, please use AM, PM or A.M., P.M. The All value means that the user can always log in; a null value (blank) means that the user can never log in. Separate the date and time with a comma and separate the date and time units with a semicolon (for example, M, 4AM-5PM; T, 1PM-3PM). Do not use spaces when specifying time.

Also, PassWordchg: {yes
Copyright © Windows knowledge All Rights Reserved