In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly shows you "how to add users under dos", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to add users under dos" this article.
Use the Net user command to add or modify user accounts or to display user account information.
Grammar
Net user [UserName [Password | *] [options]] [/ domain]
Net user [UserName {Password | *} / add [options] [/ domain]]
Net user [UserName [/ delete] [/ domain]]
Parameters.
UserName
Specify the user account name to add, delete, modify, or view. The user account name can be up to 20 characters.
Password
Assign or change a password to a user account. Entering an asterisk (*) produces a password prompt that does not display the password when typing the password at the password prompt line.
/ domain
The operation is performed on the primary domain controller of the computer's primary domain.
Options
Specify command line options. The following table lists the valid command line options that you can use.
Command line option syntax
Description
/ active: {no | yes}
Enable or disable user accounts. If the user account is not active, the user cannot access resources on the computer. The default setting is yes (that is, active).
/ comment: "text"
Provides a descriptive description of the user account. The comment can be up to 48 characters long. Put quotation marks on the text.
/ countrycode:nnn
Use the operating system country code to implement the specified language file for user help and error messages. The value 0 represents the default country code.
/ expires: {{mm/dd/yyyy | dd/mm/yyyy | mmm,dd, yyyy} | never}
Expire the user account according to the specified date. The expiration date can be in the format [mm/dd/yyyy], [dd/mm/yyyy] or [mmm,dd, yyyy]. It depends on the country code. Note that the account expires at the beginning of the specified date. For month values, you can use numeric, full, or three-letter abbreviations (that is, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec). For annual values, you can use two or four digits. Separate parts of the date with commas and slashes. Do not use spaces. If yyyy is omitted, the date of the next occurrence is assumed (depending on the date and time of the computer). For example, if you enter a date between January 10, 1994 and January 8, 1995, the following date items are equal:
Jan,9
1-9-95
January,9,1995
1/9
/ fullname: "name"
Specify the full name of the user instead of the user name. Enclose the name in quotation marks.
/ homedir:Path
Sets the path to the user's home directory. The path must exist.
/ passwordchg: {yes | no}
Specifies whether users can change their passwords. The default setting is yes.
/ passwordreq: {yes | no}
Specifies whether the user account must have a password. The default setting is yes.
/ profilepath: [Path]
Sets the path for the user to log in to the profile. The path points to the registry configuration file.
/ scriptpath:Path
Sets the path to the user login script. Path cannot be an absolute path. Path is the relative path to% systemroot%\ System32\ Repl\ Import\ Scripts.
/ times: {day [- day] [, day [- day]], time [- time] [, time [- time]] [; time | all}
Specifies the time that the user can use the computer. The added value of Time is limited to 1 hour. For day values, you can use the full name or abbreviations (that is, M, T, W, Th, F, Sa, Su). You can use a 12-hour or 24-hour time representation. For the 12-hour representation, use AM, PM, or A.M., P.M. The all value indicates that the user can always log in. A null value (blank) means that the user can never log in. Date and time are separated by commas, and date and time units are separated by semicolons (for example, MMagol 4AMML 5PM Tmin 1PM PM 3PM). Do not use spaces when specifying the time.
/ usercomment: "text"
Specifies that the administrator adds or changes the user comments for the account. Put quotation marks on the text.
/ workstations: {ComputerName [,...] | *}
List up to 8 workstations where users can log in to the network. Separate multiple items in the list with commas. If / workstations does not have a list, or if the list is an asterisk *, the user can log in from any computer.
Net help command
Displays help for the specified net command.
Annotation
If used with no parameters, net user displays a list of user accounts on the computer. You can also type net users.
The password must meet the minimum length requirements set in net accounts / minpwlen. It can be up to 127 characters. However, if the computer running Windows 2000 or Windows XP is on the same network as another computer running Windows 95 or Windows 98, consider using a password of no more than 14 characters. Windows 95 and Windows 98 support passwords of up to 14 characters. If the password is too long, you may not be able to log on to the network from those computers.
Example
To display a list of all user accounts on the local computer, type:
Net user
To view the information for the user account jimmyh, type:
Net user jimmyh
To add a user account for Jay Jamison, login permissions are from 8 a.m. to 5 p.m. Monday through Friday (there is no interval in the time specified), and use a mandatory password (jayj) and the user's full name, type:
Net user jayj / add / passwordreq:yes / times:monday-friday,8am-5pm/fullname: "Jay Jamison"
To set the login time for johnsw (8: 00 a.m. to 5: 00 p.m.) using 24-hour notation, type:
Net user johnsw / time:M-F,08:00-17:00
To set the login time for johnsw (8 a.m. to 5 p.m.) using the 12-hour notation, type:
Net user johnsw / time:M-F,8am-5pm
To specify the login time for marysl from 4 a.m. to 5 p.m. on Monday, 1 p.m. to 3 p.m. on Tuesday, and 8 a.m. to 5 p.m. on Wednesday to Friday, type:
Net user marysl / time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00
XOX
Abc is added to the administrators user group through net localgroup / add administrators abc to achieve the promotion from ordinary users to administrator users.
The above is all the content of the article "how to add users under dos". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.