Name
net user
Synopsis
net userusername
[passwd
|*] ^ [/ADD [options
] | /DELETE] [/DOMAIN]
Create or modify user accounts. As indicated, the username can be followed optionally by a password or by an asterisk to request a password prompt. Without any arguments, the command lists all user accounts in the local domain or on the local workstation.
Options
- /ADD | /DELETE
Add or delete the specified user account. The default is to modify an existing account.
- /DOMAIN
Operate on the primary domain controller rather than on the local system. (The local system is the default on Windows 2000 server systems.)
- /ACTIVE:YES | NO
Enable or disable the account.
- /FULLNAME: text
The user’s full name.
- /EXPIRES:date | NEVER
The account expiration date, if any.
- /HOMEDIR: path
The home directory location.
- /PASSWORDCHG: YES | NO
Whether users can change their password.
- /PASSWORDREQ: YES | NO
Whether a password is required for an account.
- /PROFILEPATH: path
The path to the user profile for this account.
- /SCRIPTPATH: path
The location of this user’s login script.
- /TIMES:ALL | times
The allowed login hours.
- /WORKSTATIONS: list
Limit the allowed login locations to these systems (maximum of eight systems).
- /COMMENT:string, /USERCOMMENT:string
Descriptive comments for the account.
- /COUNTRYCODE:n
Operating system country code (0 means the system default).
Get Windows 2000 Commands Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.