On Windows 10, if you suspect that your password has been compromised, previously selected a weak password, or if you’ve been using the same password for several months, it’s a good practice to change your Windows 10 account password to something different and difficult to guess.
If you’re using a local account without a Microsoft account, you have multiple ways to change your password, but one quick way is to use Command Prompt.
How to change account password using Command Prompt
Use these steps to change your local account password using Command Prompt:
Search for Command Prompt, right-click the top result, and select the Run as administrator option.
Type the following command to list all the available accounts and press Enter:
Type the following command to change the account password and press Enter:
net user USERNAME *
In the command, make sure to change
USERNAMEwith the account name that you want to change.
Type a new password for the user and press Enter.
Retype the new password to confirm and press Enter.
Once you complete the steps, sign out from your Windows 10 account, and sign back in to start using the new password.
If you’re using an account linked to your Microsoft account, the steps outlined above won’t apply. In this case, you need to follow these steps to change your account password.
Although this guide focuses on Windows 10, these steps should also work on Windows 8.1 and Windows 7.