Reset Windows Password
At a glance#
- Purpose: Reset a lost local administrator password using Windows installation media and the Utility Manager replacement method.
- Applies to: Windows Server 2012 R2 through 2022, Windows 10 and 11.
- Risk: High — requires boot media, downtime, and physical or console access.
- Time: About 45 minutes.
Overview#
Windows presents an accessibility button (Utility Manager) on the login screen, and it runs as SYSTEM before anyone has authenticated. Temporarily replacing utilman.exe with cmd.exe therefore gives a SYSTEM-level command prompt at the login screen, from which a password can be reset.
The technique needs boot media and console access. It cannot be done remotely.
Warning: This is why physical or console access to an unencrypted Windows machine is equivalent to full administrative control. The mitigation is BitLocker — with full-disk encryption enabled, the offline filesystem cannot be modified from WinPE. Any server holding sensitive data should have it enabled.
Warning: Step 9 is not optional. Leavingcmd.exein place ofutilman.exeleaves a permanent SYSTEM-level backdoor on the login screen, reachable by anyone who can see the console.
Before you start#
- Windows ISO matching the installed version, attached as boot media.
- VM console or physical access.
- A maintenance window — the machine reboots several times.
- A VM snapshot.
- For VMware VMs using the PVSCSI controller, the VMware Tools ISO available (see step 4).
Note: For domain accounts this will not help — domain passwords live in Active Directory, not locally. Reset those through Active Directory Users and Computers on a domain controller.
Procedure#
1. Boot into the Windows installation environment#
- Attach the Windows ISO and set the VM to boot from it.
- Power on and boot from the ISO.
- At the first Windows Setup screen, press Shift + F10.
A Command Prompt opens in the Windows Preinstallation Environment (WinPE).
2. Identify the Windows installation drive#
Drive letters in WinPE rarely match those in the installed OS — the Windows volume is often D: rather than C:.
Start DiskPart:
diskpart
list diskIf no disks appear, storage drivers are missing — go to step 4.
With disks visible, list the volumes:
list volumeIdentify the volume holding Windows, usually the largest NTFS partition. If it has no letter, assign one:
select volume <number>
assign letter=D
exitConfirm you have the right volume before continuing:
dir D:\Windows\System32\utilman.exeIf that file is not there, you have the wrong volume.
3. Load VMware PVSCSI drivers if no disks appear#
Only needed when DiskPart shows no disks — usually a VMware VM using the paravirtual SCSI controller, whose driver is not in the standard Windows install media.
- Mount the VMware Tools ISO in the VM.
- Load the driver, adjusting the drive letter and Windows version as needed:
drvload "E:\Program Files\VMware\VMware Tools\Drivers\pvscsi\Win10\amd64\pvscsi.inf"- Re-run DiskPart:
diskpart
list diskThe disk should now be visible. Return to step 2.
Note: The same problem during a fresh install is covered in Resolving "There are no fixed disks to show" in VMware with PVSCSI.
4. Replace utilman.exe with cmd.exe#
Back up the original first — this is what you restore in step 9:
move D:\Windows\System32\utilman.exe D:\Windows\System32\utilman.exe.bakPut cmd.exe in its place:
copy D:\Windows\System32\cmd.exe D:\Windows\System32\utilman.exeReboot back into Windows:
wpeutil rebootDetach the ISO as it reboots, or it will boot into setup again.
5. Open a command prompt from the login screen#
At the Windows login screen, click the Utility Manager icon — bottom-right, the accessibility symbol.
A Command Prompt opens instead, running as SYSTEM.
6. Reset the password or create an admin account#
To reset an existing local account directly:
net user Administrator NewStrongPassword123!List local accounts first if you are unsure of the name:
net userIf the account is disabled or you would rather not disturb it, create a temporary administrator:
net user tempadmin NewStrongPassword123! /add
net localgroup administrators tempadmin /addNote: If the built-in Administrator account is disabled, enable it with net user Administrator /active:yes.
Restart:
shutdown /r /t 07. Log in and confirm#
Log in with the reset or newly created account.
If you created a temporary admin, reset the original account's password properly:
Computer Management → Local Users and Groups → Users → right-click the account → Set Password.
8. Restore utilman.exe#
Do not skip this. Until it is done, the machine has an unauthenticated SYSTEM shell on its login screen.
- Boot from the Windows ISO again.
- Press Shift + F10.
- Confirm the drive letter as in step 2, then restore the original:
copy /y D:\Windows\System32\utilman.exe.bak D:\Windows\System32\utilman.exe
del D:\Windows\System32\utilman.exe.bak- Reboot:
wpeutil reboot9. Clean up#
Once the original account works, remove the temporary administrator:
net user tempadmin /deleteRecord the new password in the team password manager.
Verification#
Work through all of these before considering the job done:
- Log in with the reset account.
- Confirm administrative rights — open an elevated Command Prompt.
- Click the Utility Manager icon on the login screen. It must open the real accessibility tool, not a command prompt. If a command prompt appears, step 8 did not take effect.
- Confirm the temporary account is gone:
net user- Check that services and applications started correctly after the reboots.
Troubleshooting#
| Symptom | Cause and fix |
|---|---|
| No disks in DiskPart | Missing storage driver. Load PVSCSI drivers as in step 3. |
Access is denied when moving utilman.exe | You are working against a live volume rather than from WinPE, or the drive letter is wrong. |
| Utility Manager still opens the accessibility tool | Wrong volume — the copy went to a different Windows installation. Verify with dir D:\Windows\System32. |
net user reports "system error 5" | The prompt is not running as SYSTEM. Confirm it was opened via the Utility Manager button. |
| Password rejected as not meeting complexity | Domain or local policy requires a stronger password. Use upper, lower, number and symbol. |
| Machine boots into setup repeatedly | The ISO is still attached and set as first boot device. Detach it. |
| BitLocker recovery key prompt appears | The disk is encrypted, so this method will not work without the recovery key. |