Reset forgotten password on Windows 10

How to reset your Windows 10 forgotten password to regain access to your PC

If you can't sign into your Windows 10 account because you have forgotten your password, this workaround will help you to reset your password to regain access to your computer.

Eventually, for one reason or another, you won’t be able to sign in to Windows 10 to get access to your files and apps. This sign-in problem could happen after installing a new version, you simply forgot your password, and many other reasons.

Technically, if you don’t have a username and password, you won’t be able to get access to your Windows 10 account. However, there’s a workaround that allows you to regain administrator control over your computer to reset your forgotten password to get access to your original account.

In this guide, you’ll learn the steps to reset a forgotten password and recover your local account on Windows 10.

How to reset a forgotten Windows 10 password

To regain access to your account after forgetting your password, create an Windows 10 USB media, and then use these steps:

Important: Before proceeding to reset your password in Windows 10, note that this workaround only works with local accounts, not when using a Microsoft Account. If this is your case, you’ll need to use the online Microsoft password recovery tool. Here, you will be greeted with the “Why can’t you sign in?” question, where you want to go through the “I forgot my password” option. Then the online form will guide through the different ways to verify that you are “you”, by using a secondary email, sending an SMS text to your phone, and other methods to recover your password.
  1. Start your computer with the Windows 10 USB media. (Remember that your computer needs to be able to boot from the drive with the installation files, as such you may need to reconfigure your computer’s BIOS and disable UEFI and Secure Boot as necessary.)

  2. In the Windows 10 Setup page, use the Shift + F10 keyboard shortcut to open Command Prompt.

    Open Command Prompt with Shift + F10 during Windows 10 Setup

  3. Command Prompt will start on X:\Sources> by default, which is the location of the installation files. Here you’ll need to play around until you find the partition where the operating system is installed. Usually, it’s on the D:\ drive, but it might be different on your computer. Type the following command and press Enter:

  4. Type the following command to navigate to the System32 folder and press Enter:

    D:\ cd Windows\System32

    Remember to replace D:\ with your drive letter.

  5. Type the following commands in order to replace the Utility Manager button with a direct access to Command Prompt without in the Sign-in screen and press Enter on each line:

    ren utilman.exe utilman.exe.bak 
    ren cmd.exe utilman.exe

    Utilman.exe to cmd.exe commands

    Using the above commands, we created a backup of the of utilman.exe (Utility Manager), which you can restore later, and replaced it with cmd.exe (Command Prompt).

  6. Exit from all the windows, cancel the installation setup, and let the computer reboot normally.

    Quick Tip: You can use the command wpeutil reboot to restart your computer instead.
  7. While in the Sign-in screen, click the Utility Manager button in the bottom-right corner of the screen, and the Command Prompt should now appear.

  8. Type the following command to enable the built-in Administrator account, which has unrestricted access to the operating system, and then press Enter:

    net user Administrator /active:yes

    Enable hidden Administrator account in Windows 10

  9. Restart your computer to see the Administrator and all the other available accounts.

    Windows 10 account list

  10. Click the Administrator account to sign-in.

  11. Open Start.

  12. Search for Computer Management and click the top resul to open the experience.

  13. Expand the Local Users and Groups branch.

  14. Expand the Users branch.

  15. Right-click the account you want to reset the password and select the Set password option.

  16. Type the new password.

  17. Click the OK button to confirm.

    Reset Windows 10 password from Computer Management

  18. Sign out from the Administrator account.

  19. Sign in using the account that you reset its password.

  20. Restart your computer using the Windows 10 installation media again.

  21. While in the Windows 10 Setup wizard open the Command Prompt and navigate to the System32 folder as shown in step No. 2, 3, and 4.

  22. Type the following commands to restore the utilman.exe and cmd.exe to their default settings and press Enter:

    ren utilman.exe cmd.exe ren 
    utilman.exe.bak utilman.exe

    cmd.exe to utilman.exe commands

  23. Type the following command to disable the Administrator account and press Enter:

    net user Administrator /active:no

    Disable default Administrator account in Windows 10

  24. Exit all the windows, cancel the installation, and reboot your computer.

How to create a new user account on Windows 10

Alternatively, if you can’t reset your password, you can follow the steps above and on step No. 8 continue with these instructions to create a new user account using the Command Prompt and adding the new account to the local Administrators groups using the following commands:

net user newUseranme newPassword  /add
net localgroup Adminstrators newUseranme /add

Restart your computer, sign-in with your newly created users account, navigate to C:\Users\oldUserAccountForgottenPassword\ and move all your data to the new account to start over.

Disable default Administrator account in Windows 10

There you have it folks. We just went through the steps to manipulate the utilman.exe and cmd.exe utilities within Windows to allow us to use simple commands to reset your Windows 10 password without having to resource to third-party methods.

It’s important to note that this method should work as long as you’re trying to reset the Windows 10 password from a local account without any kind of encryption. If you use any sort of encryption, such as BitLocker, you will need the original password to get access to the account. Otherwise you may lose your data.

We’re focusing this guide on Windows 10, but you can use the same instructions on Windows 8.1, Windows 7, and older versions of the operating system.

Update January 11, 2018: This guide was originally published in November 2015, and it’s been updated in January 2018.