This guide covers legitimate ways to regain access to a password-protected computer when you’ve forgotten the password or inherited a locked machine. It covers Windows, macOS, and Linux methods that work on current mainstream versions, plus what to do when standard recovery fails. Before starting, ensure you have another device with internet access, a USB drive (8GB or larger), and—if possible—proof of ownership.
What You’ll Need
- A USB flash drive (8GB or larger) for creating a bootable reset disk
- Another computer with internet access to download recovery tools or create installation media
- Your Microsoft account credentials (if using a Windows account linked to email/phone)
- Your Apple ID and password (for macOS recovery)
- Patience and a clear head—rushing often causes mistakes
Step-by-Step
For Windows 10/11 (Local Account)
- On the login screen, click the “I forgot my password” link (if visible). This opens a security question prompt or a password reset wizard.
- If you’ve set up security questions, answer them exactly as you did when creating the account. If successful, you’ll be able to set a new password immediately.
- If no security questions are set up, use another computer to go to the Microsoft password reset page (account.live.com/password/reset) and follow the steps to reset the password for the Microsoft account linked to your PC. Then use that new password to log in.
- For a local account (no Microsoft account), you’ll need a password reset disk. On another Windows PC, insert a USB drive, open Control Panel > User Accounts > Create a password reset disk, and follow the wizard. Then plug that USB into the locked PC and click “Reset password” on the login screen.
- If you don’t have a reset disk, you’ll need to reinstall Windows. Boot from a Windows installation USB, choose “Repair your computer” > “Troubleshoot” > “Reset this PC” and follow the prompts. This will remove the password but also removes your files unless you choose “Keep my files” (which still requires the password in some cases).
For Windows (Microsoft Account)
- On any device, go to the Microsoft account password reset page.
- Enter the email or phone number associated with the account and follow the verification steps (email code, SMS, or authenticator app).
- Create a new password and use it to log into the locked computer.
For macOS (Apple ID)
- Restart the Mac and hold Command+R until the Apple logo appears. This boots into Recovery Mode.
- Select “Utilities” > “Terminal” from the menu bar.
- Type
resetpasswordand press Enter. A password reset window appears. - Follow the on-screen instructions. If your Mac is linked to an Apple ID, you’ll be asked to enter that Apple ID password to unlock the reset.
- If you don’t have an Apple ID, you may need to use Recovery Mode to reinstall macOS, which erases the disk. Choose “Reinstall macOS” and follow the prompts.
For Linux (Ubuntu, Debian, Fedora)
- Restart the computer and press Shift (or Esc) repeatedly during boot to access the GRUB menu.
- Select “Advanced options” and then choose a kernel with “(recovery mode)”.
- In the recovery menu, select “root” to drop to a root shell.
- Type
mount -o remount,rw /to remount the filesystem as read-write. - Type
passwd username(replaceusernamewith the actual username) and enter a new password twice. - Type
rebootand log in with the new password.
Common Mistakes
- Guessing passwords repeatedly—Windows and macOS lock the account after several failed attempts, sometimes for hours.
- Using third-party password-cracking tools that often contain malware or simply don’t work on modern encrypted systems.
- Forgetting that BitLocker (Windows) or FileVault (macOS) encryption will make data recovery impossible without the recovery key, even if you reset the password.
- Assuming a password reset disk works for a Microsoft account—it only works for local accounts.
- Not backing up data before attempting a system reset, which can wipe files.
Tips
- Always create a password reset disk when you first set up a Windows local account—it’s a small effort that saves hours later.
- Use a password manager to avoid forgetting passwords in the first place.
- If you’re helping someone else, ask for proof of ownership (receipt, original box) to avoid enabling unauthorized access.
- For macOS, enabling FileVault means you must have the recovery key stored somewhere safe—write it down and keep it offline.
- On Windows, if you have a Microsoft account, set up a phone number for verification—it’s the fastest way to reset.
Troubleshooting
- Password reset link doesn’t work: Ensure you’re using the correct email/phone. Check spam folders. If you’ve lost access to both, you may need to create a new Microsoft account and reinstall Windows.
- Security questions fail: Answers are case-sensitive and must match exactly. Try variations (e.g., “dog” vs “Dog”). If still failing, use the reset disk or reinstall.
- Reset disk not recognized: The USB must be formatted as FAT32 and created on the same Windows version. Try a different USB port.
- macOS Terminal says “resetpassword not found”: You’re not in Recovery Mode. Restart and hold Command+R immediately at startup.
- Linux root shell says “permission denied”: You may have a locked root account. Use
sudo passwd usernameinstead, but you’ll need sudo privileges—if that fails, boot from a live USB and chroot into the system. - BitLocker or FileVault prompts for recovery key: Without the key, data is inaccessible. Check your Microsoft account (for BitLocker) or your iCloud account (for FileVault) for stored recovery keys.
Frequently Asked Questions
Q: Can I bypass a Windows password without any tools?
A: Only if you have security questions set up or a Microsoft account with online verification. Otherwise, you’ll need a reset disk or a reinstall.
Q: Will resetting the password delete my files?
A: Resetting via security questions or reset disk does not delete files. Reinstalling Windows or macOS usually erases the drive unless you choose “Keep my files” (which may still require the old password).
Q: I bought a used computer and the previous owner’s password is still on it. What can I do?
A: If it’s a Windows PC, you can reinstall Windows from a USB drive. On a Mac, you can erase the disk via Recovery Mode and reinstall macOS. This removes the old account and all data.
Q: Is it legal to reset a password on a computer that isn’t mine?
A: Only if you have explicit permission from the owner. Unauthorized access is illegal in most jurisdictions, even if you’re trying to help.
Q: What if I have a fingerprint or PIN but forgot the password?
A: On Windows, you can use the PIN to log in and then change the password in Settings > Accounts. On macOS, Touch ID doesn’t work after a restart, so you’ll need the password or Apple ID reset.
Q: How long does a password reset take?
A: Security question or Microsoft/Apple online reset takes about 5 minutes. A full reinstall takes 30-60 minutes depending on your internet speed and hardware.
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
- Show User Library in macOS High Sierra & Sierra
- Device Manager Shortcut: Windows 10 Desktop
- How to Remove Forgotten Passcode from iPhone
- Fix Slow Wi-Fi Problem iPhone X: 9 Steps
- How to Check if a Candidate Accepts Crypto Donations
- How to Listen to Deleted Voicemails on iPhone