How to Reset Windows Password via command line

I know most of us already experience a random blackout in our mind – it could be your ATM pin, email password, and even your Windows password. But you don’t have to panic as there also a solution to this if you can’t remember your password at all. All you need is a copy of the Windows installation disk and follow this step by step command line trick to reset your Windows password.

First, insert your installation disk then restart your computer. Once on the boot screen select the DVD ROM and proceed to “repair your computer” option from the lower left-hand corner.

Just follow through the steps until you get to the option to open the Command Prompt, which you’ll want to select.

You need to overwrite the Sticky Keys executable with the Command Prompt executable. Sticky Keys is an accessibility feature that allows a user to tap the Shift, Ctrl, Alt, or Windows key once to achieve the same effect as holding the key down.

When you are already there, type in the following command to back-up the original sticky keys file:

copy c:\windows\system32\sethc.exe c:\

Then you’ll copy the command prompt executable (cmd.exe) over top of the sticky keys executable:

copy c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe

Now you can reboot the PC.