If you’re locked out of your HP computer running Windows 10 because you forgot the administrator password, this guide walks you through several methods to reset it. Depending on your situation—whether you have another admin account, a password reset disk, or need to use built-in recovery tools—you’ll find a step-by-step solution that works without third-party software.
What You’ll Need
- Access to another administrator account on the same PC (if available)
- A password reset disk (if you created one earlier)
- A Windows 10 installation USB drive or recovery drive (for the command prompt method)
- Your HP computer’s recovery options (accessible from the sign-in screen)
Step-by-Step
Method 1: Reset Using Another Administrator Account
- Sign in to Windows 10 with any other account that has administrator privileges.
- Press Windows key + X and select Computer Management.
- In the left pane, expand Local Users and Groups and click Users.
- Right-click the account whose password you forgot and choose Set Password.
- Read the warning about losing encrypted files and certificates, then click Proceed.
- Enter a new password twice, then click OK.
- Sign out and log in with the new password.
Method 2: Use a Password Reset Disk
- On the sign-in screen, after entering a wrong password, click Reset password (if available).
- Insert your password reset USB flash drive.
- Follow the Password Reset Wizard: choose the drive, enter a new password and hint, then click Finish.
- Log in with the new password.
Method 3: Reset via Windows Recovery Environment (Command Prompt)
- From the sign-in screen, hold Shift and click the Power icon, then select Restart.
- Your HP PC will boot into the Windows Recovery Environment (WinRE).
- Go to Troubleshoot > Advanced options > Command Prompt.
- If prompted for an admin password, try leaving it blank and press Enter, or use any known admin password.
- In the Command Prompt, type
copy c:\windows\system32\utilman.exe c:\windows\system32\utilman.exe.bakand press Enter. - Type
copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exeand press Enter. - Type
exitand press Enter to close the prompt. - Click Continue to restart Windows normally.
- On the sign-in screen, click the Ease of Access icon (the little person with a clock). A command prompt will open.
- Type
net user Administrator *(or the exact username) and press Enter. - Type a new password twice when prompted.
- Close the command prompt and log in with the new password.
- After logging in, restore the original Utilman.exe: open Command Prompt as admin and type
copy c:\windows\system32\utilman.exe.bak c:\windows\system32\utilman.exe.
Method 4: Use HP Recovery Manager (Factory Reset)
- Turn off the computer.
- Press the Power button, then immediately press F11 repeatedly until the HP Recovery Manager opens.
- Select Troubleshoot > Reset this PC.
- Choose Remove everything (this deletes all files and resets the password).
- Follow the on-screen instructions. This will reinstall Windows 10 and remove the password.
Method 5: Use Windows Installation Media
- Boot from a Windows 10 installation USB drive.
- On the first screen, press Shift + F10 to open Command Prompt.
- Type
regeditand press Enter. - In Registry Editor, click HKEY_LOCAL_MACHINE.
- Go to File > Load Hive.
- Navigate to
C:\Windows\System32\configand select the SYSTEM file. - Enter a key name like
temp. - Navigate to
temp\Setupand change the value of CmdLine tocmd.exe. - Change SetupType to
2. - Select
tempand go to File > Unload Hive. - Close Registry Editor and Command Prompt, then restart without installing.
- Windows will boot to a command prompt. Type
net user Administrator *and set a new password. - Restart and log in.
Common Mistakes
- Forgetting to restore Utilman.exe after the command prompt method—this leaves a security hole.
- Using the wrong username in the
net usercommand—check the exact username on the sign-in screen. - Performing a factory reset without backing up important files—all data is lost.
- Assuming the built-in Administrator account is active—it’s often disabled by default.
- Not having a password reset disk ready before you get locked out.
Tips
- Always create a password reset disk for your admin account and store it in a safe place.
- Use a password hint that only you understand.
- Consider using a Microsoft account instead of a local account—you can reset the password online at account.live.com/password/reset.
- After resetting, immediately back up your data to avoid loss during future resets.
- If you use BitLocker, have your recovery key handy—resetting a password may require it.
Troubleshooting
- Command Prompt doesn’t open in WinRE: If the Shift+Restart method fails, boot from a Windows installation USB and choose “Repair your computer” instead.
- “Access denied” when copying files: Ensure you’re running the command prompt as administrator, or try using the installation media method.
- Utilman.exe replacement doesn’t work: Some HP models have Secure Boot enabled—disable it in BIOS/UEFI temporarily, or use the installation media method.
- Forgot the username: Use
net userin the command prompt to list all accounts. - HP Recovery Manager doesn’t open: Try pressing F11 repeatedly right after powering on, or use the Windows recovery environment via Shift+Restart.
- After resetting, the account is still locked: Wait a few minutes or restart the PC, then try again.
Frequently Asked Questions
Can I reset the admin password without losing files?
Yes, methods 1, 2, 3, and 5 do not delete your personal files. Only the factory reset (Method 4) removes everything.
What if I don’t have another admin account or a reset disk?
You can use the Windows Recovery Environment command prompt method (Method 3) or the installation media method (Method 5). Both require physical access to the computer.
Will resetting the password affect encrypted files?
Yes, files encrypted with EFS (Encrypting File System) will become inaccessible if you reset the password without the original password or recovery key.
Is it legal to reset a Windows password on an HP computer?
Yes, as long as you own the computer or have permission from the owner. These methods are for legitimate recovery purposes only.
How long does the factory reset take?
It typically takes 30-60 minutes, depending on your HP model and hard drive speed.
Can I use these methods on a Microsoft account?
For Microsoft accounts, you must reset the password online. The local methods only work for local accounts. If you used a Microsoft account, go to account.live.com/password/reset.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Make a Mask on Snapchat: Step-by-Step
- How to Factory Reset iPad If You Forgot Password
- Ubuntu in Windows Store: Which Editions Work?
- Secure Guest Account on Windows 11: Step-by-Step
- Stop Outlook From Changing Hyperlink Font
- Hiberfil.sys: What It Is & How to Delete It