Reset Windows 7 password with command prompt on login screen

Windows 7 computer is locked, can command prompt be run to reset Windows 7 forgotten password? The answer is yes, but the operation will be a little complicated. Now this way will walk you through how to reset forgotten password with command prompt on locked Windows 7 computer step by step.

Step 1: Force power off your computer.

Start your computer and when you see it saying Starting Windows. Hold down the Power button for at least 5 seconds to force power off your computer.

Step 2: Restart computer and choose "Launch Startup Repair (Recommended)".

Next time, when you power on your computer, two options will be available, launch startup repair and start normally. If you have no admin password to access computer, please choose the recommended option.

launch startup repair in windows 7

Note: Startup Repair will boot up and when it asks if you want to restore computer, click "Cancel" button.

Step 3: Click on "View problem details" while Startup Repair cannot repair computer automatically.

Startup Repair tool automatically checks the system problems and tries to fix them. After a long time, you will get a dialog saying that Startup Repair cannot repair this computer automatically. Click on View problem details.

view problem details after failed computer repair

Step 4: Pop up "File Open" dialog by opening Microsoft's offline privacy statement in notepad.

1. Click the last link to read Microsoft's offline privacy statement in notepad.

read offline privacy statement in notepad

2. Click on the File menu and Open in notepad. Then File Open dialog box would pop up.

open file open dialog with notepad

Step 5: Run command prompt instead of Sticky Keys application on login screen.

1. Change the File of type option to All Files and browse to C:\windows\system32\sethc.exe. Rename this file as a backup, just like "sethc-copy".

2. Find the cmd.exe file in the same folder and rename it to sethc.exe.

rename cmd to sethc

3. Close all the dialogs, click Finish button and computer restarts.

finish startup repair

4. Once go to Windows 7 login screen, hit the Shift key 5 times and Command Prompt will be opened instead of Sticky Keys application.

reset windows 7 password with command prompt on locked computer

Step 6: Reset Windows 7 password with command prompt.

After Windows 7 password reset with command line, you can follow step 1-5 again to restore sethc.exe and cmd.exe.

 

Comments

Popular Post

My Printer Not Connecting

RESISTOR TESTING

HARDWARE TECHNICIAN

How to Hack WiFi Password: Guide to Crack Wi-Fi Network

INTRODUCTION TO CHIP-LEVEL TECHNOLOGY

The relationship with future AI and IT technician?

Windows S Mode - how to disable it and switched to windows 10 pro