sodcalculator

10 Tech How-To

Unlock Locked Computer Without Password: 5 Ways

Guide 10-34138 · Updated · Step by step

Being locked out of your own computer is frustrating, but you usually have options. This guide covers the most common ways to regain access to a Windows or macOS machine when you’ve forgotten the password — without reinstalling the operating system or losing your files. The right method depends on your situation (e.g., local account vs. Microsoft account, FileVault enabled or not), so read the steps carefully before starting.

What You’ll Need

  • Access to another computer or smartphone (for account recovery options)
  • Your Microsoft account credentials (if you use a Microsoft account on Windows)
  • Your Apple ID and password (if you use a Mac with FileVault enabled)
  • A USB drive with at least 8GB (only for the Windows reset method)
  • Patience — some methods take 30–60 minutes

Step-by-Step

Method 1: Use the Built-in Password Reset (Windows / Mac)

  1. On the login screen, click “I forgot my password” (Windows) or “?” next to the password field (Mac).
  2. Follow the prompts to verify your identity — usually via email, phone number, or security questions.
  3. Create a new password and log in.
  4. If you don’t see this option, your account may be local-only (see Method 2 or 3).

Method 2: Reset Windows Password via Safe Mode (Local Account)

  1. Restart your PC. As it boots, press F8 (or Shift+F8) repeatedly until the Advanced Boot Options appear.
  2. Select “Safe Mode with Command Prompt”.
  3. When the login screen appears, click the “Administrator” account (often hidden) and log in with no password.
  4. Once in, open Command Prompt as administrator.
  5. Type: net user yourusername newpassword and press Enter. Replace “yourusername” with your actual username and “newpassword” with a new password.
  6. Restart and log in with the new password.

Method 3: Use a Password Reset Disk (Windows Only)

  1. If you previously created a password reset disk (USB or floppy), plug it in.
  2. On the login screen, click “Reset password…” and follow the wizard.
  3. Choose the disk, enter a new password, and finish.
  4. This only works if you made the disk before you were locked out.

Method 4: Reset Mac Password Using Recovery Mode

  1. Restart your Mac and hold Command+R until the Apple logo appears.
  2. From the macOS Utilities window, choose “Utilities” > “Terminal”.
  3. Type resetpassword and press Enter.
  4. Follow the on-screen instructions to reset your password (you may need your Apple ID).
  5. Restart and log in with the new password.

Method 5: Factory Reset (Last Resort — Erases Everything)

  1. Windows: Go to Settings > Update & Security > Recovery > “Reset this PC” > “Remove everything”.
  2. Mac: Restart and hold Command+R, then choose “Disk Utility” to erase the drive, then reinstall macOS.
  3. After reset, you’ll set up the computer as new — you lose all files unless you have a backup.

Common Mistakes

  • Trying a Microsoft account password reset on a local account (or vice versa).
  • Skipping the step to enable the built-in Administrator account in Safe Mode (it’s disabled by default on newer Windows).
  • Forgetting that FileVault on Mac requires your Apple ID even in Recovery Mode.
  • Using a password reset disk that was created for a different user account.
  • Attempting to guess passwords repeatedly — this can lock you out for longer.

Tips

  • Always create a password reset disk (Windows) or ensure your Apple ID is linked (Mac) before you forget your password.
  • Use a password manager to store your passwords securely.
  • Enable biometric login (fingerprint or face) as a backup — it works even if you forget the password.
  • Write down your password hint and keep it in a safe place (not on a sticky note on the monitor).
  • If you’re locked out of a work computer, contact your IT department instead of trying these methods — they may have policies against it.

Troubleshooting

  • Method 1 fails: If you don’t see the “I forgot my password” link, your account is likely local. Move to Method 2 or 4.
  • Safe Mode doesn’t show Administrator: On Windows 10/11, the built-in Administrator is disabled by default. You can try booting into Safe Mode with Networking and use another admin account if you have one.
  • Command Prompt says “Access denied”: You’re not in an admin account. Try logging in as Administrator with a blank password (if it was never set).
  • Mac recovery doesn’t accept your Apple ID: If FileVault is on and you don’t have the recovery key, you may need to erase the disk — see Method 5.
  • The password reset disk isn’t recognized: Make sure it’s the exact disk you created, and that it’s plugged in before the login screen appears.
  • You get locked out after several attempts: Wait 15–30 minutes or restart your computer before trying again.

Frequently Asked Questions

Can I unlock a computer without losing my files?

Yes, methods 1–4 preserve your files. Only a factory reset (Method 5) erases everything.

Is it legal to unlock a computer that isn’t mine?

Only if you own the computer or have explicit permission from the owner. Unauthorized access is illegal in most jurisdictions.

What if I never set up a password reset disk or Apple ID?

You may still be able to use Safe Mode (Windows) or Recovery Mode (Mac) if the account is local. If not, a factory reset is the only option.

Will these methods work on a work or school computer?

Usually not — those are managed by an IT department. Contact them for help.

How can I avoid this happening again?

Use a password manager, set up biometric login, and create a password reset disk (Windows) or ensure your Apple ID is linked (Mac).

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

Some tools exist, but they often require creating a bootable USB and may trigger antivirus warnings. Use them at your own risk — they’re not officially supported.

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

The whole Tech How-To bed →