You may need to manage users in your system, and doing it with the UI can be hectic. This post guides you on creating a user in windows using the command prompt. It can be helpful when you need to create a new user for your system, reset a user's password or delete a user's account.
Let's get started!
Add a user account
- Open the command prompt (press the
Windows key + R
) - type "cmd".
- Press enter.
Once the command prompt is open, type in the following command:
net user username password /add
Replace "username" with the new users name and "password" with the desired password for that user. Press enter.
You will then see the message, "The command completed successfully." This means that your new user has been created! You can now log out and log back in as this new user.
Hide password
To keep the password hidden, type in the following command instead:
net user /add username *
Replace "username" with the users name—press enter. You will then be prompted to type in and confirm a new password for the user. Type in a password and press enter, then type it in again to confirm. Press enter once more.
You will be greeted with the message, "The command completed successfully.
That is all for this article. But you can stick around for some cool tricks.
View Users
To view users, type the command:
net user
It gives you a list of all users on the computer, including any guest accounts
You can also view more information about a specific user. Use this command:
net user username
Replace "username" with the name of the user you want to view information about and press enter. It will show you the user's full name, password, and login status.
Delete User account
To delete a user account, type in the following command:
net user username /delete
Replace "username" with the name of the user you want to delete. Press enter. You should see a message that says, "The command completed successfully." This means that your user has been deleted!
Keep in mind that you can only delete users that are not currently logged in. So if you're trying to delete a user and you get an error message saying that the user is still logged in, try logging out and back in as a different user, then try again.
Thanks for reading! We hope this was helpful. Stay tuned for more tips and tricks!