Thsi is a guide to reset your local windows password.
⚠️ If you dont exactly understand what you do here, this could break your operating system. Please be carefull!
Boot from another live operating system, for example from a USB stick with Linux or something similar (e.g. http://www.knoppix.org/). You need a console where you can access the hard disk of the computer.
You can also use the Windows installation CD. You can open the command line in the installation screen with SHIFT
+ F10
There are a few .exe
programs that you can run from the login screen.
If you replace these .exe
files with cmd.exe
, you can open a command line with admin privileges in the login screen and reset your password yourself.
C:\Windows\system32\Utilman.exe
- Accessibility center for ease of access
- Activate on login screen: Can be called up via the Button for ease of access
C:\windows\system32\sethc.exe
- Snap function of the Shift key.
- Activate on login screen: Pressing the Shift key 5 times
Backup the corresponding "original" .exe
and then replace it with C:\Windows\system32\cmd.exe
# On an unix shell (eg linux)
mv sethc.exe sethc.exe.old
cp cmd.exe sethc.exe
# On a windows shell
ren sethc.exe sethc.exe.old
copy cmd.exe sethc.exe
In Windows 10, you must first disable Protection against malware execution:
- Start Windows normally until you reach the logon screen
- Click on the shutdown options
- Then hold down
Shift
and click on Restart - Windows will now start in a repair mode
- Select Troubleshoot / Problembehandlung
- Then Advanced options / Erweiterte Optionen
- Then Startup Settings / Starteinstellungen
- Then click on Restart
- Now select Option 8 - Disable early-launch anti-malware protection
- Now continue with the steps below
Start Windows to the login screen and then activate the previously replaced .exe
file (see Step 2 / Activate on login screen)
A command line should open. Here you can change your password:
net user <USERNAME> <NEW_PASSWORD>
net user peter s3cr3t #Set password s3cr3t for user peter
net user peter "" #Removes password completely for user peter
net user #List all user accounts
Of course you would never leave a system in this vulnerable state... :D
So you should now replace the backuped original .exe
file:
# On a windows shell
ren C:\windows\system32\sethc.exe.old C:\windows\system32\sethc.exe
Successfully tested with Windows XP, Windows 7 and Windows 10 (with disable early-launch anti-malware protection)
Has anyone tested this with Windows 11?