Factory reset works, but you lose everything on the drive

A factory reset wipes your computer back to the state it left the manufacturer — which means it removes the password you forgot, but also removes every file, program, and setting you've added since. If you have important documents, photos, or work files on the machine, a factory reset is destructive and should be your last option, not your first.

The process differs sharply between Windows and Mac, and the steps depend on whether you can still turn the computer on and reach the login screen. If you can reach the login screen but cannot log in, you have faster options than a full factory reset. If the computer won't start at all, or if you've already tried password recovery and it failed, then factory reset becomes necessary.

Key Takeaways

  • A factory reset removes the password but also deletes all your files, programs, and personal settings — back up anything you need before starting.
  • On Windows 10 or 11, you can reset from the login screen itself without needing the password, which takes 30 minutes to an hour.
  • On Mac, you need either an Apple ID, a recovery key, or physical access to another Mac on the same network to reset the password without erasing the drive.
  • If the computer won't start at all, you'll need to boot into recovery mode (Windows) or Recovery (Mac) before you can reset anything.
  • After a factory reset, the computer boots to a setup screen where you create a new account and password from scratch.

Windows 10 and 11: reset from the login screen

If you can see the Windows login screen but cannot remember the password, Windows 10 and 11 both offer a built-in reset option that does not require you to know the old password. Click "I forgot my password" on the login screen. Windows will ask you to verify your identity using a phone number, email address, or security questions tied to your Microsoft account.

If you can verify your identity that way, Windows will let you create a new password without erasing the drive. This is not a factory reset — your files stay. If you cannot verify your identity through those methods, or if the account is a local account (not connected to Microsoft), then you move to the factory reset option: click "Reset this PC" from the login screen and choose "Remove everything." This process takes 30 minutes to an hour and erases the entire drive.

During the reset, Windows will ask whether you want to remove files securely (slower, more thorough) or quickly (faster, but files could theoretically be recovered with specialized tools). For a home computer, the quick option is usually sufficient. After the reset completes, the computer restarts and shows the Windows setup screen, where you create a new local account and password.

Mac: password reset without erasing, if you have an Apple ID

On a Mac, if you can reach the login screen, you do not need to factory reset to regain access. Click the question mark icon below the password field, or wait 30 seconds and it will appear automatically. This opens a password hint or recovery option. If the Mac is connected to an Apple ID, you can use that Apple ID to reset the password without erasing anything.

If you do not have access to the Apple ID, or if the Mac is an older model or a local account, you have two other routes before factory reset: use a recovery key (if you set one up when you created the account), or use another Mac on the same network to reset the password through Recovery mode. Both of these preserve your files.

A full factory reset on Mac is called an Erase and Reinstall. You boot into Recovery mode (hold Command + R while the Mac starts), choose Erase from the Utilities menu, then reinstall macOS. This wipes the drive and removes the password, but also removes all your files and settings. After the erase, the Mac boots to setup and asks you to create a new account.

If the computer won't start: boot into recovery mode

If the computer powers on but will not load the operating system, or if it gets stuck on a black or blue screen, you need to boot into recovery mode before you can reset anything. On Windows, restart the computer and press F8, F11, or Delete repeatedly as it starts (the key varies by manufacturer). This opens the boot menu. Select "Repair your computer" or "Troubleshoot," then choose "Reset this PC."

On Mac, hold Command + R as the computer starts. This boots into macOS Recovery, which shows a menu with options including Erase and Reinstall. From there, you can erase the drive and reinstall the operating system, which removes the password. Both processes take 45 minutes to two hours depending on the computer's speed and the size of the drive.

What happens after the factory reset completes

Once the reset finishes, the computer restarts and shows a setup screen. On Windows, you'll see "Let's get your free guide" and prompts to create a new local account or sign in with a Microsoft account. On Mac, you'll see the Setup Assistant asking for language, region, and then an account name and password. In both cases, you create a brand-new account from scratch — the old password is gone, and the old account no longer exists.

After setup completes, the computer is ready to use, but it is completely empty. No files, no programs, no email accounts, no browser history. You'll need to reinstall any programs you use regularly (Microsoft Office, Chrome, Zoom, etc.) and restore any files from a backup if you have one. If you do not have a backup, those files are unrecoverable after a factory reset.

Before you reset: check for backups and recovery options

Before you erase the drive, spend 10 minutes checking whether you have a backup or a recovery option that would preserve your files. On Windows, open File Explorer and look for an external hard drive or USB drive connected to the computer. On Mac, check System Settings > General > Time Machine to see if backups have been running. If either shows recent backups, you can restore from them after the reset.

Also check whether you have a recovery key, a backup email address, or a phone number tied to your account. These can sometimes unlock the computer without erasing it. If you're not sure whether a backup exists, or if you're concerned about losing files, consider taking the computer to a local repair shop — they may be able to recover the password or access the files without a full reset, though this usually costs money.

Preventing this in the future: password managers and recovery options

After you regain access, set up a way to recover your password if you forget it again. On Windows, add a phone number and backup email to your Microsoft account in Settings > Accounts. On Mac, enable a recovery key in System Settings > General > Password & Security, and store it somewhere safe (a password manager, a printed note in a drawer, or a trusted family member).

Consider using a password manager like Bitwarden, 1Password, or KeePass to store passwords securely. Password managers reduce the chance you'll forget a password, because you only need to remember one strong master password. They also make it easier to use different, complex passwords for each account — which protects you if one service is breached.

Frequently Asked Questions

Will a factory reset remove viruses or malware?

Yes, a factory reset removes malware because it erases the entire drive and reinstalls a clean operating system. However, if malware is on an external drive or USB device connected to the computer, it will still be there after the reset. Disconnect all external drives before you reset, and scan them separately on a different computer if you're concerned.

Can I recover files after a factory reset?

If you have a backup (Time Machine on Mac, File History on Windows, or an external drive), you can restore files after the reset. If you do not have a backup, recovery is very difficult and usually requires paying a data recovery service. Some files may be partially recoverable if the drive is not written over, but this is not reliable.

How long does a factory reset take?

A factory reset usually takes 30 minutes to two hours, depending on the computer's speed, the size of the drive, and whether you choose find or quick erasure. Older computers or very large drives take longer. Do not interrupt the reset or turn off the computer while it is running.

Do I need the product key or license after a factory reset?

Windows usually reactivates automatically after a reset if the license was tied to your Microsoft account or the hardware. Mac does not require a license key. If Windows does not reactivate, you may need to enter a product key, which is usually printed on a sticker on the computer or in your purchase receipt.

What if I don't remember my Microsoft account password either?

Go to account.microsoft.com on another device and use "I forgot my password" to reset it. You'll need access to the email address or phone number tied to the account. Once you reset the Microsoft account password, you can use it to reset the Windows password from the login screen, which may avoid a full factory reset.