Changing your password is simple in Windows. While you can jump through a few menus to change the password for your own account (or someone else’s if you’re an administrator), if ever you can’t do it that way, you can always use the Command Prompt instead.
It might scare new users, but the Command Prompt is great for quickly doing common tasks. Next time you want to change a password on your PC, try this method.
How to Change the Windows User Password via Command Line
- First, open an administrator Command Prompt (assuming you have administrator privileges). To do this, type cmd into the Start Menu. Right-click on the Command Prompt entry and choose Run as administrator.
- Type the following command and press Enter to list all the users on your system:
net user
- Take note of the account name you want to change the password for, then use this command. Replace USERNAME and NEWPASS with the actual username and new password for the account. Further, if the username is more than one word, you’ll need to place it inside quotes:
net user USERNAME NEWPASS
net user "USER NAME" NEWPASS
- After you press Enter to run this command, you’ll see a message that it completed successfully. Now you can use the new password to log into this account.
For extra security, you can use a slightly different command to prevent the new password from appearing on-screen. Type net user USERNAME * and Windows will ask you to type a new password twice. However, it doesn’t appear as you type, making sure anybody nearby cannot see it.
If you see an Access denied message, make sure that you started the Command Prompt as an Administrator. Standard users can’t change the password for other users.
And if you’ve lost the administrator password, follow our tips for resetting your forgotten Windows password.
How to Reset Your Lost Windows 10 Password How to Reset Your Lost Windows 10 Password You forgot your Windows 10 login password? Don't despair! We'll show you how to reset your password and recover your account. Read More
nice post
How about 1 or 2, I think 2 is true if some user have more than 1 empty space
1. net user Some User userpass
2. net user "Some User" userpass
Anyone can give me solution of my query???
how to reset bulk user's password ? (50 No's of user in one time)
Thanks I was actually able to create an account and make it Admin through this process at the welcome screen by replacing the sticky keys function with cmd
Also if the username is more than 1 word you can toss "John Doe" for user to clear that up. I didn't see anyone mention that. Just put it in quotes
Example: net user "John Doe" password
Thank you so much for mentioning the quotes!!
Your quotes comment really saved me
Your post is great! I have a Windows 2008 server (administrated remotely) and after I had uninstalled the active directory all my users were deleted and seems that also the password for administrator user was messed up. So because we have a service which runs a nant build system I've put the command to reset the password into nant script with tag. Now I can log in again to my server.
Thank you for your post!
Cool... Exactly what I needed to know just now.
I have to reset the local admin passwords on all our PCs, and this will make scripting it dead easy.
You know an even easier way to change/reset user passwords? start > run > control userpasswords2.
that only works if you already know the password for the account. This is useful if you forgot the password, or need to get into an account you normally do not have access to
right info
"TO THE EARLIER COMMENTER"
I am pretty sure I had approved your comment earleir but for some reason it's not here. :? I must have mistakenly set it to 'delete' instead of 'approve'. Sorry ... :-(