•Arnošt Havelka
User Mgmt
Add, remove, and manage user accounts with net user.
Start Interactive LessonThe 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.
Try the command
Add a new user!
Build the command
net
/active:{yes|no}Activates or deactivates the user account.
*Prompts for the password (so it's not visible in history).
Terminal
C:\Users\Student>net user JohnDoe /add
The command completed successfully.
Common Operations
1. View User Details
See when a user last logged in, password expiration, and group memberships.
Terminal
C:\Users\Student>net user Guest
2. Add a New User
Create a new account quickly.
Terminal
C:\Users\Student>net user NewUser 12345 /add
3. Change a Password
Reset a user's password.
Terminal
C:\Users\Student>net user NewUser NewPassword!
Knowledge Check
1 / 3Which command adds a new user?
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
The Xcopy Command
Copy entire directory trees.