Command

How to change password with Command Prompt on Windows 11

Here are the easy steps to change your account password with Command Prompt on Windows 11.

Windows 11 change password command

On Windows 11, if you had the same password for a long time, it’s not a very strong password, or the current password has been compromised, you can change it to something more complex that only you will remember.

If you have a local account that is not connected to a Microsoft account, you have multiple methods to change the password, but the best and quickest way is to use Command Prompt.

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

Change account password using Command Prompt

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

  1. Open Start on Windows 11.

  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 that you want to update.

    Change password command

  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 of the account and sign back in to start using the new password.

If you have an account linked to your Microsoft account, the steps outlined above won’t apply. If you have a Microsoft account, you will need to reset your email password online or through the Windows 11 Lock screen. Also, even though, this guide focuses on Windows 11, these steps should also work on Windows 10, Windows 8.1, and Windows 7.