Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Reset Windows Password When Locked Out: 5 Ways

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you're locked out of Windows, you can reset your password without a reset disk in most cases—by using another admin account, a Microsoft account, or the built-in recovery environment. The method depends on the Windows version and whether you use a local or Microsoft account. Below are the working ways to regain access.

What You'll Need

  • Access to another administrator account on the same PC (if available).
  • A second computer or phone with internet access (for Microsoft account reset).
  • A USB drive with at least 8 GB (for creating a Windows installation media, if needed).
  • Your Windows installation media (DVD or USB) if you don't have another admin account.

Step-by-Step

Method 1: Reset Using Another Administrator Account (Local Account)

  1. On the login screen, click the other administrator account (if you have one) and sign in.
  2. Open Control Panel > User Accounts > Manage another account.
  3. Select the locked account.
  4. Click Change the password.
  5. Enter a new password twice, then click Change password.
  6. Sign out and log in with the new password.

Method 2: Reset Microsoft Account Password Online

  1. On another device, go to account.live.com/password/reset.
  2. Select I forgot my password and click Next.
  3. Enter the email address or phone number associated with your Microsoft account.
  4. Complete the verification (code sent to your recovery email/phone).
  5. Follow the prompts to create a new password.
  6. On the locked PC, click the password field and enter the new password. If it doesn't sync immediately, restart the PC.

Method 3: Use Command Prompt from Recovery Environment (Local Account, Windows 10/11)

  1. From the login screen, click the power icon, hold Shift, and click Restart.
  2. When the blue screen appears, choose Troubleshoot > Advanced options > Command Prompt.
  3. If prompted, select your account and enter your password (if you have one for that account). If not, click Continue.
  4. In the Command Prompt, type: net user and press Enter. Note the exact username of the locked account.
  5. Type: net user username newpassword (replace username and newpassword). Press Enter.
  6. Type exit and press Enter, then restart the PC.
  7. Log in with the new password.

Method 4: Use Windows Installation Media and Command Prompt (Local Account, Windows 10/11)

  1. On another PC, create a Windows installation USB using the Media Creation Tool from Microsoft's website.
  2. Boot the locked PC from the USB. You may need to press a key (F12, F2, Esc) to choose the boot device.
  3. On the first screen, press Shift+F10 to open Command Prompt.
  4. Type regedit and press Enter.
  5. In Registry Editor, click HKEY_LOCAL_MACHINE to highlight it.
  6. Go to File > Load Hive.
  7. Navigate to the Windows drive (usually C:), then Windows\System32\config and select the file SYSTEM. Click Open.
  8. Enter a key name like temp and click OK.
  9. Expand HKEY_LOCAL_MACHINE\temp and click on Setup.
  10. On the right, double-click CmdLine and set its value to cmd.exe. Click OK.
  11. Double-click SetupType and set its value to 2. Click OK.
  12. In Registry Editor, click HKEY_LOCAL_MACHINE\temp again, then File > Unload Hive. Confirm.
  13. Close Registry Editor and Command Prompt, then remove the USB and restart the PC.
  14. Windows will boot to a Command Prompt. Type net user username newpassword and press Enter.
  15. Close the Command Prompt, log in with the new password.

Method 5: Reset via Password Reset Disk (Windows 7/8)

  1. If you created a password reset disk earlier, insert it into the USB port.
  2. On the login screen, click Reset password below the password box.
  3. Follow the wizard to create a new password.

Common Mistakes

  • Using the wrong username in the net user command—check with net user first.
  • Typing the new password with spaces or special characters that cause errors—use a simple alphanumeric password.
  • Forgetting that Microsoft account passwords are not reset locally; you must reset online.
  • In Method 4, not unloading the hive before restarting, which can cause system errors.
  • Not holding Shift while clicking Restart, so the recovery environment doesn't open.

Tips

  • Always create a password reset disk for local accounts as soon as you set a password (Windows 7/8).
  • Use a PIN instead of a password for faster sign-in—but remember that a PIN is tied to that device.
  • If you have a Microsoft account, enable two-step verification to make online reset easier.
  • Write down your password and store it in a safe place, or use a reputable password manager.
  • After resetting, consider setting up security questions for local accounts (Windows 10/11) to avoid future lockouts.

Troubleshooting

If the above methods don't work, try these in order:

  1. Restart the PC—sometimes a simple reboot clears temporary glitches.
  2. Check Caps Lock—passwords are case-sensitive.
  3. Try a different keyboard—if you're using a laptop, an external keyboard can rule out stuck keys.
  4. Use the “I forgot my PIN” link—if you use a PIN, Windows may offer to reset via your Microsoft account or security questions.
  5. Boot into Safe Mode—if you can get to the recovery environment, choose Safe Mode and try to log in with the built-in Administrator account (often disabled by default, but worth checking).
  6. If nothing works—you may need to reinstall Windows, which will erase your files. Consider using a data recovery service if you have critical data, or try booting from a Linux live USB to back up files first.

Frequently Asked Questions

Can I reset a Windows password without any admin access or installation media?

No. Without another admin account, a Microsoft account, or installation media, there is no legitimate way to reset a local password. You would need to reinstall Windows.

Does resetting a password delete my files?

No. Resetting the password via any of the methods above does not delete your personal files. However, reinstalling Windows (the last resort) will erase everything on the system drive.

Why does the Command Prompt method not work on my Windows 11?

The Command Prompt method (Method 3) works only if you can access the recovery environment and have a local account. If you use a Microsoft account, the password is not stored locally, so net user won't change it.

Is it legal to reset a password on a computer that isn't mine?

Only if you have explicit permission from the owner. Resetting someone else's password without authorization is illegal and unethical.

Can I use a third-party tool to reset the password?

There are third-party tools, but they are often unreliable and may contain malware. Microsoft does not endorse them. Stick to official methods.

What if I have BitLocker enabled?

If BitLocker is on, you'll need the recovery key to access the drive when using installation media. The key is usually saved to your Microsoft account or a USB drive. Without it, you cannot reset the password via the registry method.