How To Reset Forgotten Windows Password Using A Command Line

Windows users configure a password for their PC to keep it protected from unauthorized personnel and it’s very common to forget Windows password. To reset forgotten windows password is pretty simple if you know some basic tricks. However there are only two Microsoft approved methods, yet we would let you know a command line trick to reset forgotten Windows password. You don’t need to have much technical knowledge to use this command line tool.

reset forgotten windows password

You need to have only Windows installation disk to reset forgotten Windows password of your PC. If you don’t have the disk, then prepare it to start the process.

As there are different methods to reset passwords of different versions of Windows, in this blog post we are going to discuss how to reset the password of Windows 7.

How To Reset Forgotten Windows Password

First of all, boot your computer using Windows installation disc.

Now wait for the setup files to load and select your language. Click Next.

Click on the link Repair your computer option appearing on the installation screen.

Follow the on screen instructions until you get the option to open the Command Prompt.

In the Command Prompt window, run the following command

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

This command will backup the original sticky keys file.

Now copy the command prompt executable (cmd.exe) over top of sticky keys executable using following command

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

Now you can exit Command Prompt and reboot your computer.

At the login screen, hit Shift key five times. The Command Prompt with Administrator rights will pop up.

To reset the forgotten Windows password, run the following command

        net user username NewPassword

Use the combination of username and password as per your preference.

Now reboot your PC and login it with new username and password.

Also read: How to Enable or Disable Windows 10 Lock Screen

We recommend you to backup your important data frequently. When you reset forgotten Windows password by using the sticky keys, you will lose the access to encrypted emails, encrypted files and even saved passwords for Internet browser. If you face any problem while resetting Windows password, then let us know via comments.

Leave a Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.