Command reset

How to change account password using Command Prompt on Windows 10

When you need to change your local account password, you can also use Command Prompt, and in this guide, you'll learn how on Windows 10.

Change Windows 10 account password Command Prompt

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.

In this guide, you’ll learn the steps to change your local account password on Windows 10.

How to change account password using Command Prompt

Use these steps to change your local account password using Command Prompt:

  1. Open Start.

  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.

  3. Type the following command to list all the available accounts and press Enter:

    net user
  4. Type the following command to change the account password and press Enter:

    net user USERNAME *

    In the command, make sure to change USERNAME with the account name that you want to change.

    Command Prompt change account password
    Command Prompt change account password
  5. Type a new password for the user and press Enter.

  6. 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.