It’s every Windows user’s worst nightmare: you try to log in one day, and every attempt is denied. Whether you’ve forgotten your password, it’s been changed, or you need access without knowing the password, there’s a way to break back in.
The Backdoor
Warning: This method involves interrupting your system’s startup process, which can be harmful to your hard drive. Use it only if absolutely necessary.
Step 1: Prepare Your Laptop (If Applicable)
If you’re using a laptop, remove the battery and plug it into the mains.
Step 2: Force a Startup Repair
- Start Windows as usual.
- While it’s booting up, unplug the power to force an automatic startup repair on the next boot.
Note: This may take a few attempts. If you see a screen with safe boot options instead, keep trying until you reach the Windows Error Recovery screen.
- Once you see the Windows Error Recovery screen, select Launch Startup Repair (recommended).
Windows will then begin loading files and initiate the startup repair process.
Step 3: Trigger the Command Prompt
- Wait a few minutes. A pop-up will appear asking, “Do you want to restore your computer using System Restore?” Click Cancel.
- After another 5 to 10 minutes, a message will appear saying, “Startup Repair cannot repair this computer automatically.”
- Click on View problem details.
- In the details window, look for the final .txt link, usually addressed as
X:\windows\system32\en-US\erofflps.txt
. Click on this link to open Notepad. - In Notepad, go to File > Open.
- Navigate to
C:\Windows\System32
. - Change the Files of type dropdown to All Files.
- Locate
sethc.exe
, right-click on it, and rename it tosethc1
. - Find
cmd.exe
, right-click on it, and select Copy. Then, rename the copied file tosethc
. - Close Notepad and press Cancel on the Startup Repair window to restart Windows.
Step 4: Reset Your Password
- Let Windows start normally and wait until the user profile login screen appears.
- Press the Shift key five times quickly. This will open the Command Prompt, thanks to the renamed
cmd.exe
. - In the Command Prompt, type
net user
and press Enter to see a list of users. - Identify your user from the list. To reset their password, type:
net user USERNAME *
(ReplaceUSERNAME
with the actual username from the list.) - Enter a new password for the user, or leave it blank and press Enter.
Step 5: Log Back In
You should now be able to log back into your account with the new password. Welcome back to Windows!