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
Change Windows 10 account password Command Prompt

On Windows 10, if you suspect your password has been compromised, it’s a weak password, or if you have been using the same password for a long time, it is a good practice to change your Windows 10 account password to something different and difficult for someone else to guess.

If you have a local account without a Microsoft account, there are multiple ways to change your password, but one quick way is to use Command Prompt.

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

Change account password using Command Prompt

To change your local account password with Command Prompt, use these steps:

  1. Open Start on Windows 10.

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

  3. Type the following command to view 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 you want to update.

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

  6. Type the new password again to confirm and press Enter.

Once you complete the steps, sign out and sign back into the Windows 10 account to start using the new password.

The steps outlined above won’t apply if you have an account linked to your Microsoft account. 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.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and About.me. Email him at [email protected].