You can also type net users.Ī password must satisfy the minimum password length value that is set with the net accounts /minpwlen command. When you use net user without parameters, it displays a list of the user accounts on the computer. If /workstations has no list or if the list is an asterisk (*), users can log on from any computer. Separate multiple entries in the list with commas. Lists as many as eight workstations from which a user can log on to the network. Specifies that an administrator can add or change the "User comment" for the account. Do not use spaces when you designate times. Separate day and time with commas, and separate units of day and time with semicolons (for example, M,4AM-5PM T,1PM-3PM). A null value (blank) means a user can never log on. The value all means a user can always log on. If you use 12-hour notation, use AM and PM, or A.M. You can use 12-hour or 24-hour notation for hours. For the values, you can spell out the names of the days or use abbreviations (that is, M,T,W,Th,F,Sa,Su). Specifies the times that users are allowed to use the computer. is relative to %systemroot%\System32\Repl\Import\Scripts. Sets a path for the user's logon profile. Specifies whether a user account must have a password. Specifies whether users can change their own password. Sets the path for the user's home directory. Specifies a user's full name rather than a user name. For example, the following entries are equivalent if entered between Jan. If you omit, the next occurrence of the date (that is, according to your computer's date and time) is assumed. Use commas or slashes to separate parts of the date. You can use two or four numbers for the year value. For the month value, you can use numbers, spell it out, or use a three-letter abbreviation (that is, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec). Note that the account expires at the beginning of the specified date. Expiration dates can be in, , or formats, depending on the Country/Region code. A value of 0 signifies the default Country/Region code.Ĭauses the user account to expire if you specify the date. Uses the operating system Country/Region codes to implement the specified language files for a user's Help and error messages. This comment can have as many as 48 characters. Provides a descriptive comment about the user's account. If the user account is not active, the user cannot access resources on the computer. Refer to the next table for descriptions of the command-line option syntax.ĭisplays help for the specified net command.Įnables or disables the user account. Performs the operation on the domain controller in the computer's primary domain. The password is not displayed when the user types it at the password prompt. Type an asterisk (*) to produce a prompt for the password. The name of the user account can have as many as 20 characters.Īssigns or changes a password for the user's account. Specifies the name of the user account to add, delete, modify, or view. To run net user, open a command prompt, type net user with the appropriate parameters, and then press ENTER.įor examples of how this command can be used, see Examples. Net user is a command-line tool that is built into Windows Vista. Applies To: Windows Server 2003, Windows Vista, Windows Server 2008, Windows Server 2003 R2, Windows Server 2000, Windows Server 2012, Windows Server 2003 with SP1, Windows 8Īdds or modifies user accounts, or displays user account information.
0 Comments
Leave a Reply. |