How to change your windows account password using CMD

Thanks to Windows’ net user command, you can change your PC’s user account passwords right from your command prompt (CMD) window. This lets you set a new password for your chosen account without navigating any setting menus.
The net user command requires admin access, which means you must be using an admin account to use the command. You can then use it to change passwords for your own account as well as for others’ accounts.
Also, note that this command only lets you change your local account password. If you use a Microsoft account with your PC, you’ll have to use another method to change your password.
How to change your windows account password using CMD
- Open the “Start” menu. In this menu, search for “Command Prompt”.
- Right-click and select “Run as Administrator.”
- On the Command Prompt window, type the following command and press Enter.
- In this command, replace
USERNAME
with the username whose password you want to change andPASSWORD
with the new password you want to use. (net user USERNAME PASSWORD)
Are you making these password changes in a public place? People around you (or looking through security cameras) could take a look at your password while you’re typing it. In this case, use the following command. Make sure to replace USERNAME
in the command with the username whose password you want to update.