If you are locked out of your Windows PC because you forgot your password, you can still regain access using built-in Windows tools—no third-party software needed. This guide covers the most reliable methods: using the hidden Administrator account in Safe Mode, resetting via a password reset disk (if you made one earlier), and using the Windows installation media to replace the Utility Manager with Command Prompt. You will need access to another admin account or a Windows installation USB/DVD for some methods.
What You’ll Need
- Another admin account on the PC (for the Safe Mode method).
- A Windows installation USB or DVD (for the Command Prompt method).
- A password reset disk (only if you created one before getting locked out).
- Access to a working computer to create the installation media if you don’t have it.
Step-by-Step
Method 1: Reset via Another Admin Account
- Log in to the PC using another account that has administrator privileges.
- Press Win + X and select Computer Management from the menu.
- In the left pane, expand System Tools and click Local Users and Groups, then Users.
- Right-click the account you forgot the password for and select Set Password.
- Read the warning about losing encrypted files and certificates, then click Proceed.
- Type a new password twice, then click OK.
- Log out and sign in with the new password.
Method 2: Use the Hidden Administrator Account in Safe Mode
- Restart the PC. As soon as it begins booting, press F8 repeatedly (or Shift + F8 on some systems) until the Advanced Boot Options menu appears.
- Select Safe Mode with Command Prompt and press Enter.
- If a login screen appears, choose the Administrator account (it is often hidden but visible in Safe Mode). If it has no password, just press Enter.
- At the command prompt, type:
net userand press Enter to list all user accounts. - Type
net user username newpasswordand press Enter. Replaceusernamewith the exact account name andnewpasswordwith your chosen password. - Type
exitand press Enter, then restart the PC normally. - Log in with the new password.
Method 3: Use Windows Installation Media to Enable the Hidden Administrator
- Boot from your Windows installation USB or DVD. If you don’t have one, create it using the Media Creation Tool from Microsoft’s website on another computer.
- On the first screen, select your language and click Next.
- Click Repair your computer at the bottom left.
- Choose Troubleshoot → Advanced options → Command Prompt.
- At the command prompt, type
regeditand press Enter. - In Registry Editor, click on HKEY_LOCAL_MACHINE to highlight it.
- Go to File → Load Hive.
- Navigate to
C:\Windows\System32\config(the drive letter may be different, e.g., D:). Select the file namedSYSTEMand click Open. - When prompted for a key name, type
tempand click OK. - Go to
HKEY_LOCAL_MACHINE\temp\Setup. On the right, double-click CmdLine and set its value tocmd.exe. - Double-click SetupType and change its value to
2. - Close Registry Editor and the command prompt, then restart the PC normally (remove the installation media).
- Windows will boot to the login screen, but a command prompt window will appear. In it, type
net user Administrator /active:yesand press Enter. - Close the command prompt, then click the Administrator account on the login screen (it should now be visible). Log in with a blank password.
- Once logged in, press Win + X → Computer Management → Local Users and Groups → Users. Right-click your original account and choose Set Password. Set a new password.
- Optional but recommended: disable the Administrator account by typing
net user Administrator /active:noin an elevated command prompt.
Method 4: Use a Password Reset Disk (Windows 7 and earlier)
- Insert the password reset disk (USB or floppy) that you created earlier.
- At the login screen, after entering a wrong password, click Reset password.
- Follow the Password Reset Wizard, which will guide you to create a new password.
- Restart and log in with the new password.
Common Mistakes
- Typing the username incorrectly in the
net usercommand. Usenet userto see the exact list. - Using the wrong drive letter in the Registry Editor method. The Windows drive may be D: or E: when booting from installation media.
- Forgetting to change
SetupTypeback to0after the reset—though it usually resets automatically after the first boot. - Setting a password that contains spaces or special characters without quoting it correctly in the command line.
Tips
- Always create a password reset disk before you need it—it’s the easiest method.
- Use a password hint that is not too obvious but helps you remember.
- If you use a Microsoft account to sign in, you can reset the password online at account.live.com/password/reset instead of using these methods.
- After resetting, consider backing up your data and creating a system repair disk.
Troubleshooting
Safe Mode doesn’t show the Administrator account
If the Administrator account is not visible in Safe Mode, it may be disabled. In that case, use Method 3 (installation media) to enable it.
F8 key doesn’t work
On Windows 10/11, F8 is disabled by default. Try Shift + F8 immediately after the BIOS screen, or use the installation media method instead.
The command prompt doesn’t open at login after the registry edit
Make sure you edited the correct hive and that the values are exactly cmd.exe and 2. If it still doesn’t work, repeat the process, ensuring you load the SYSTEM hive from the correct Windows partition.
“Access denied” when using net user
You must be running the command prompt as an administrator. In Safe Mode, the Administrator account usually has full rights. If not, try Method 3.
Your Microsoft account password won’t change
If you sign in with a Microsoft account, the local password is not the same as the online password. Reset it online or use the “I forgot my password” link on the login screen.
Frequently Asked Questions
Will I lose my files if I reset the password?
No, resetting the password does not delete files. However, encrypted files (EFS) and stored credentials may become inaccessible unless you have the recovery key.
Can I reset a Windows 11 password without installation media?
Yes, if you have another admin account, use Method 1. Otherwise, you may need installation media or a Microsoft account reset.
Is it legal to reset a Windows password?
Yes, as long as you own the computer or have permission from the owner. Resetting a password on someone else’s device without consent is not appropriate.
Why is the Administrator account hidden?
For security, Windows disables the built-in Administrator account by default. You can enable it temporarily using the methods above.
What if I don’t have a password reset disk?
You can still use Methods 1, 2, or 3. A reset disk is only necessary for the easiest method, but it’s not the only way.
Will these methods work on a domain-joined PC?
No, if the PC is part of a domain, you need to contact your system administrator. Local methods do not work for domain accounts.
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
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Spotting Outside Windows: Step-by-Step Guide
- Computer Keeps Crashing When Playing Games? Fixes