Reset Windows Password
Description:
Sometimes, you will be locked out of an account due to not knowing the password, here are some things to try:
Preferred Method - Native Windows:
-
Boot from the Windows 10 DVD. Make sure that your PC setup is configured to boot from a DVD and that UEFI and Secure Boot are disabled.
-
At some point in the beginning of the wizard, Press
SHIFT + F10
to open a command prompt. -
Replace the file
utilman.exe
withcmd.exe
. Before you do this, you should make a copy ofutilman.exe
so that you can restore it later. Note that you can only restore this file if you boot again from the Windows DVD. Windows 10 is usually installed on drive D: if you boot from a DVD. You can verify this withdir d:\windows\system32\utilman.exe
If the system can’t findutilman.exe
, try other drive letters.1 2
move d:\windows\system32\utilman.exe d:\windows\system32\utilman.exe.bak copy d:\windows\system32\cmd.exe d:\windows\system32\utilman.exe
-
After you have replaced
utilman.exe
successfully, you can remove the DVD and restart your problematic Windows 10 installation: -
On the Windows 10 sign-in page, click the Utility Manager icon. Since we replaced the Utility Manager with the
cmd.exe
, a command prompt should open now. Don’t worry about the error message. You can now add a new user with the commands below. Here we are creating a new user and adding to the administrators group.1 2
net user (username) (password) /add net localgroup administrators (username) /add
-
Click the screen to make the sign-in page appear again. Your new account should show up, and you can sign in without a password.
- NOTE: You will obviously want to do seps 1-3 again but putting files back where they belong.
Hirens Boot CD
-
Download the ISO image of Hiren’s BootCD from its official website (about 593 MB). Burn the ISO file to your CD (or USB stick) using the freeware ISO2Disc.
-
After getting Hiren’s BootCD ready, Boot your Windows 10 computer from CD (Change boot order on BIOS to set CD/DVD-ROM as the first boot device). Remember to change UEFI boot with Legacy and disable Secure Boot temporarily in BIOS.
-
You will be prompted with the Hiren’s CD Menu, from there select Offline NT/2000/XP/Vista/7 Password Changer and press Enter. Don’t use Kon-Boot as it doesn’t support Windows 10/8 password bypass.
-
Hit Enter when you see the boot prompt.
-
The screen will list all your partitions and you need to select the partition where Windows is installed. It’s usually the larger one. Type 2 and press Enter.
-
Now it will ask to confirm the registry path (Windows/System32/config). The default registry path will be correct so just press Enter.
-
We’re going to reset forgotten Windows password, so choose the default choice Password reset [sam system security] by pressing Enter.
-
Choose the default choice Edit user data and passwords and press Enter again.
-
You will now see the user accounts on you computer. Type the username whose password you want to change and press Enter.
- Type 1 and press Enter. This will clear/remove the password of your selected account.
- Now type ! And hit Enter to quit the User Editor menu.
- Enter q to exit chntpw Main Interactive Menu and press Enter.
-
Important step! Here must type y so it saves your password reset changes!
Sticky Keys Trick:
-
Boot from Windows PE or Windows RE and access the command prompt. NOTE: You can also boot to any Linux Live CD and access a Windows system.
-
Find the drive letter of the partition where Windows is installed. In Vista and Windows XP, it is usually C:, in Windows 7, it is D: in most cases because the first partition contains Startup Repair. To find the drive letter, type C: (or D:, respectively) and search for the Windows folder. Note that Windows PE (RE) usually resides on X:.
-
Type the following command (replace “c:” with the correct drive letter if Windows is not located on C:):
- Type:
copy c:\windows\system32\sethc.exe c:\
(This creates a copy ofsethc.exe
to restore later.)
- Type:
-
Type this command to replace
sethc.exe
withcmd.exe
:- Type:
copy /y c:\windows\system32\cmd.exe c:\windows\system32\sethc.exe
- Type:
-
Reboot your computer and start the Windows installation where you forgot the administrator password.
-
After you see the logon screen, press the SHIFT key five times.
-
You should see a command prompt where you can enter the following command to reset the Windows password:
- Type:
net user gerry pa$$w0rd /add
and thennet user localgroup administrators gerry /add
- Type:
-
After you login and do whatever you need to do it’s advised to:
-
Replace
sethc.exe
with the copy you stored in the root folder of your system drive in step 3. For this, you have to boot up again with Windows PE or RE because you can’t replace system files while the Windows installation is online. Then you have to enter this command:-Type:
copy /y c:\sethc.exe c:\windows\system32\sethc.exe
-
Either delete the newly created account or hide it from the login/Control Panel users by:
- Run =>
regedit
=> Navigate to:HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList
- Create the subkeys if they are not there.
- In that directory, right click => New DWORD (32 bit) => Name it the name of your user account and set its value to
0
. - Reboot for it to apply as with any reg trick.
Comments