Alternative usage of net commands in Win

xiaoxiao2021-03-06  14

The NET user command is a DOS command, which must be run in the MS-DOS mode under Windows XP, so you first go to the MS-DOS mode: Select the "Attachment" option of the "Attachment" option of the Start menu, or Enter "cmd.exe" in the "Run" option (shortcuts for WIN R) in the Start menu, enter the MS-DOS mode. The following features are based on this mode. Create a common new user in the MS-DOS prompt to enter the following command: "Net User John 123 / Add", Enter. You can create a new user named "john" and password "123". The Add parameter represents 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. Building a login time Limited user uses the following method to implement the control of the computer usage time. For example, you need to build a John user account, password is "123", login permissions from Monday to Friday, 8:00 to ten o'clock in the evening and weekends at night. 1. 12 hours can type the following command: "Net user John 123 / Add / Times: Monday-Friday, 8 AM-10PM; Saturday-Sunday, 7 PM-9PM", Enter the Enter. 2. 24-hour system can be typed as follows: "Net User John 123 / Add / Times: M-F, 8: 00-22: 00; SA-SU, 19: 00-21: 00", Enter the carriage return to determine. It is worth noting that the added value of TIME is limited to 1 hour. For a DAY value, a full name or abbreviation (ie M, T, W, TH, F, Sa, Su) can be used. It can be used for 12 hours or 24-hour time representation. For 12-hour representation, use AM, PM or A.M., P.M .. The ALL value indicates that the user can always log in; null value (blank) means that users can never log in. Date and time with a comma, separated by a semicolon separation and time unit (for example, M, 4 AM-5PM; T, 1 PM-3PM). Do not use spaces when specifying time. In addition, the Passwordchg: {yesno} parameter can be used to specify whether the user can change its own password, and the default is set to YES. The user's usage time The NET user command can also use the parameter expires: {{mm / dd / yyyy dd / mm / yyyy mmm, dd, yyyy} never} User account accounts based on the specified Date expired by the user. The expiration date can be [MM / DD / YYYY], [DD / MM / YYYY] or [MMM, DD, YYYY] format. It depends on the country (region) code. User account expires at the beginning of the specified date. For month values, you can use numbers, full name, or three letters (ie Jan, Feb, Mar, Apr, May, Jun, JUL, AUG, SEP, OCT, NOV, DEC). For year values, two-digit or four digits can be used; use a comma and slash separation date; do not use spaces.

转载请注明原文地址:https://www.9cbs.com/read-48787.html

New Post(0)