< All Topics
Print

How to reset forgotten password using sticky keys in Windows 10 1803

If you have a PC that you can’t login to because you don’t know the password then you are probably aware of the Sticky Keys replacement trick. The idea is you boot the computer up using a Windows disk and you overwrite the sethc.exe file with the cmd.exe file. You then reboot the computer and at the login screen you press the SHIFT key 5 times and a command prompt opens up. From here you can reset passwords or create new user accounts.

Today I tried it on a Windows 10 PC (v1803) and it didn’t work. I eventually found a solution that comprises booting into safe mode and running the commands you want really quick. You have about 1 minute before the command prompt will disappear.

Don't worry - Sticky keys does still work in Windows 10 1803 and above!

I think what is happening is Windows Defender is removing the sethc.exe file from c:windowssystem32 because it recognises it’s not the legitimate file. This sounds reasonable as many viruses disguise themselves in perfectly legitimate file names.

The Sticky Keys trick does not work on user accounts where the user is signing into their Windows 10 PC using their Microsoft account. If this is the case then you can reset your Microsoft password on another computer and then sign in.

If the user account is a local acocun then the following steps do work, although you may have to try it more than once if you aren't fast enough entering the commands first time round.

  1. Boot the computer using a Windows 10 disk.
  2. On the language and region settings click Next.
  3. Select Repair your computer.
  4. Select Troubleshoot.
  5. Select Advanced Options.
  6. Select Command Prompt.

Type the following commands:

C:
dir

Do you see folders such as Windows and Users? If not, then type:

D:
Dir

If you still don’t see folders such as Windows and Users then try E: and F: drives etc.

Once you have found the Windows folder type the following and replace c: with the letter of your Windows folders.

Copy c:windowssystem32sethc.exe c:
Copy c:windowssystem32cmd.exe c:windowssystem32sethc.exe
bcdedit /set {default} safeboot minimal
Exit

Restart the computer and it will automatically boot into safe mode. As soon as the login screen appears time is of the essence. You will have about 1 minute to enter the commands you need before the command prompt will disappear.

Press SHIFT key 5 times and the command prompt will appear.

The following commands will create a new administrator account called James with a password of strongpwd99

Net user James strongpwd99 /add
Net localgroup administrators james /add

To just reset a password of a user called James

Net user James strongpwd99

Restart the PC and you will be able to login with the new user account or the account with a new password.

Lastly you will want to turn off safe mode by opening a command prompt:

bcdedit /deletevalue {default} safeboot.

Reboot the computer once more and everything should now be back to normal.