If you forgot your computer password, the best first step is to use the password reset options built into your operating system, such as a reset disk, security questions, or a linked Microsoft or Apple account. For local accounts without those options, you may need to use recovery mode or a password reset tool. This article covers practical methods for Windows and macOS, plus what to do when nothing else works.
Why Passwords Get Forgotten
People forget passwords for many reasons: they haven’t logged in for months, they recently changed it and didn’t update their notes, or they use different passwords for different accounts and mixed them up. The problem is more common after a system update, when a user profile gets corrupted, or when a password was set by someone else (like an IT admin or a family member). Understanding the type of account you have is key to choosing the right recovery method.
How Windows Password Recovery Works
Windows offers several recovery paths depending on the account type. A Microsoft account (used with Windows 10/11) can be reset online at account.live.com/password/reset. You’ll need access to the recovery email or phone number associated with the account. A local account (not linked to Microsoft) is harder, but you can use a password reset disk if you created one earlier, or answer security questions if you set them up. For Windows 11, local accounts often have security questions as an option.
If you don’t have those, you can boot into the Windows Recovery Environment (WinRE) by restarting your PC three times during startup. From there, go to Troubleshoot > Advanced Options > Startup Settings and choose Safe Mode. In Safe Mode, the built-in Administrator account (often disabled by default) may be available without a password. If it is, you can log in and change your password via Control Panel > User Accounts. This trick works on many systems, but not all—especially if the Administrator account also has a password.
How macOS Password Recovery Works
On a Mac, the recovery method depends on whether you have FileVault enabled and which macOS version you’re running. If you have an Apple ID linked to your Mac, you can reset your password by restarting and holding Command+R to enter Recovery Mode. From the menu bar, choose Utilities > Terminal and type resetpassword. This opens a GUI that lets you reset the password using your Apple ID. For newer Macs with Apple Silicon (M1/M2), you can also use the Recovery Mode approach, but you may need to enter your FileVault recovery key if the disk is encrypted.
If you don’t have an Apple ID linked, you can use the macOS Recovery’s “Reset Password” utility if you know the firmware password (for Intel Macs). Otherwise, you may need to erase the disk and reinstall macOS, which loses your data unless you have a backup.
Using Third-Party Password Reset Tools
When built-in methods fail, third-party tools can reset Windows local passwords. These tools typically work by creating a bootable USB drive with a password reset image. You boot from the USB, and the tool edits the SAM (Security Account Manager) database to remove or change the password. Popular tools include Ophcrack, Offline NT Password & Registry Editor, and Lazesoft Recovery Suite. These are free and open-source for personal use.
For macOS, third-party tools are less common because of FileVault encryption. If FileVault is off, you can use a tool like Passware Kit Forensic, but it’s expensive and aimed at law enforcement. For most users, the built-in recovery is sufficient.
What to Do When Nothing Works: Factory Reset
If you cannot recover the password and you don’t have a backup, the last resort is a factory reset. This wipes all data and reinstalls the operating system. On Windows, you can use the “Reset this PC” option from the login screen (hold Shift and click Restart, then Troubleshoot > Reset this PC). On Mac, you can use Recovery Mode to erase the disk and reinstall macOS. This should only be done if you are okay losing all local files. If you have cloud backups (OneDrive, iCloud, Google Drive), you can restore after the reset.
How to Create a Password Reset Disk (Windows)
For local accounts on Windows, you can create a password reset disk ahead of time. This is a USB drive or floppy disk that lets you reset your password without any other recovery option. To create one:
- Insert a USB drive into your PC.
- Open Control Panel > User Accounts > Create a password reset disk.
- Follow the wizard—it will save a file named
userkey.pswto the drive. - Store the drive in a safe place. When you forget your password, click “Reset password” on the login screen and insert the drive.
Note that this only works for local accounts, not Microsoft accounts. Also, the disk is tied to the specific user account and PC, so it won’t work on another machine.
Common Mistakes and Misconceptions
Many people try to guess passwords or use “password hint” features, which are often not helpful. Another common mistake is trying to use a Windows installation disc to reset the password by replacing the utilman.exe file with cmd.exe—this is a known trick, but it’s blocked on newer Windows versions due to security patches. Also, don’t assume that a Microsoft account password is the same as your local password; they are separate.
Another misconception is that you can bypass a password by booting into Safe Mode and creating a new admin account. This only works if the built-in Administrator account is enabled and has no password, which is rare on modern systems. Most Windows 10/11 installations disable the built-in admin account by default.
Prevention: How to Avoid This Next Time
The best way to avoid the hassle is to set up multiple recovery options before you need them:
- Use a Microsoft account on Windows or an Apple ID on Mac, so you can reset online.
- Set up security questions for local accounts (Windows 10/11).
- Create a password reset disk (Windows local accounts).
- Enable FileVault on Mac and store the recovery key in a safe place.
- Use a reputable password manager to store all your passwords securely.
- Write down your password and keep it in a secure physical location (like a safe).
Frequently Asked Questions
Can I reset a Windows password without a disk or admin account?
Yes, if you have a Microsoft account, you can reset online. For local accounts, you can use a third-party bootable tool like Ophcrack or Offline NT Password & Registry Editor. These work by booting from a USB and clearing the password hash. They are free and generally safe, but you should back up your data first.
What if I forgot my Mac password and FileVault is enabled?
If FileVault is on, you’ll need your FileVault recovery key to reset the password. If you don’t have that, you may be able to use your Apple ID if you set that as a recovery option. If neither works, you’ll have to erase the disk and reinstall macOS, which loses your data.
Does a password reset disk work for Microsoft accounts?
No, password reset disks only work for local accounts. For Microsoft accounts, you must reset online via your recovery email or phone number.
Is it legal to use third-party password reset tools?
Yes, as long as you are resetting the password on your own computer or have explicit permission from the owner. Using such tools on someone else’s computer without permission is illegal and unethical.
Will I lose my files if I do a factory reset?
Yes, a factory reset erases all data on the system drive. You should always back up important files to an external drive or cloud service before resetting. After reset, you can restore from backup.
Can I bypass a password by using Command Prompt at login?
On older Windows versions, you could replace the accessibility tools with Command Prompt to reset a password. This is patched on current Windows 10/11 versions, so it won’t work. Using this method is also risky as it can break system functionality.
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
- Firestick vs Fire TV: Key Differences
- Kodi Crashing on Windows? Fixes That Work
- Extract SMS & iMessage from iTunes Backup
- View Saved Passwords on Samsung Galaxy Phones
- Messenger Calls Not Ringing: Fixes for Android & iPhone
- NordVPN Not Working on Windows 11? Fixes That Work