•Arnošt Havelka
User Mgmt
Add, remove, and manage user accounts with net user.
Start Interactive LessonUser Management
The net user command is the key to managing users from the command line. You can add new accounts, reset passwords, or delete users without clicking through Settings. Note: These commands typically require Administrator privileges.
Usage:net user
[username]
[password]
[/options]
/add
Adds a user account to the user accounts database.
/delete
Removes a user account.
/active:{yes|no}
Activates or deactivates the user account.
*
Prompts for the password (so it's not visible in history).
Common Operations
1. View User Details
See when a user last logged in, password expiration, and group memberships.
Command Prompt
C:\Users\User>net user Guest
2. Add a New User
Create a new account quickly.
Command Prompt
C:\Users\User>net user NewUser 12345 /add
3. Change a Password
Reset a user's password.
Command Prompt
C:\Users\User>net user NewUser NewPassword!
Knowledge Check
1 / 3Which command adds a new user?