If you’re locked out of your Windows laptop because you forgot the password, a factory reset can restore the system to its out-of-the-box state, removing all personal files, settings, and the password requirement. This guide covers the built-in recovery options in Windows 10 and 11 that let you reset without logging in, plus what to do if those don’t work.
What You’ll Need
- Your laptop’s power adapter (keep it plugged in during the reset)
- A backup of any files you want to keep (if possible, using another computer or external drive)
- Access to a stable internet connection (for the “Cloud download” option, if you choose it)
- Your Microsoft account credentials, if the laptop was linked to one (for some recovery options)
Step-by-Step
- Save what you can before resetting. If you have another computer, you can remove the hard drive (or use a USB adapter) to copy important files. If you can’t, know that the reset will erase everything on the laptop’s internal drive.
- Start the reset from the Windows sign-in screen. Turn on the laptop and wait for the login screen. Click the power icon in the bottom-right corner, then hold the Shift key on your keyboard and click Restart. Keep holding Shift until the blue “Choose an option” screen appears.
- Open the recovery menu. On the “Choose an option” screen, click Troubleshoot, then Reset this PC.
- Choose “Remove everything.” You’ll see two options: “Keep my files” and “Remove everything.” Since you don’t have the password, “Keep my files” may not work (it still asks for your account), so choose Remove everything.
- Select the installation method. Windows will ask how you want to reinstall: Cloud download (downloads a fresh copy from Microsoft, requires internet) or Local reinstall (uses files already on the laptop). Cloud download is more reliable if your system files are corrupted; local reinstall is faster if your internet is slow. Pick one.
- Confirm the reset. Windows will show a summary of what will be removed. Click Next, then Reset. The laptop will restart and begin the process, which can take 30 minutes to a few hours.
- Set up Windows as new. After the reset, the laptop will boot to the “Out of the box” setup screen. You’ll be asked to choose a region, keyboard layout, and create a new user account with a new password (or use a Microsoft account). You’re now in.
Common Mistakes
- Not holding Shift long enough. If you release Shift before the blue screen appears, the laptop will just restart normally. Keep holding it until you see “Choose an option.”
- Choosing “Keep my files” when you don’t have the password. This option still requires you to enter your current password to proceed. Always choose “Remove everything” when you’re locked out.
- Interrupting the reset. Unplugging the charger or forcing a shutdown mid-reset can leave the system in an unusable state. Keep the laptop plugged in and let it finish.
- Assuming a factory reset removes the Microsoft account lock. If the laptop was linked to a Microsoft account, the reset may still ask for that account’s password during setup (this is called “First Sign-in”). You’ll need to enter it, or use the “Forgot password” link on the Microsoft login page.
Tips
- Use the Windows installation media as a backup plan. If the Shift+Restart method fails, you can create a bootable USB drive with the Windows Media Creation Tool (from another computer) and boot from it. Then choose “Repair your computer” > “Troubleshoot” > “Reset this PC.”
- Choose “Cloud download” if your laptop has been slow or buggy. It replaces the entire Windows installation with a clean copy, which often fixes deeper issues.
- Back up your files before resetting. If you can’t access the laptop, you can remove the hard drive and connect it to another computer with a USB adapter to copy files. This is the only way to save data when you’re completely locked out.
- Write down your new password. After the reset, you’ll create a new account. Store the password in a safe place (like a password manager) to avoid this situation again.
Troubleshooting
- Shift+Restart doesn’t work. If the laptop boots to the login screen instead of the blue menu, try pressing the power button to force shutdown (hold it for 10 seconds), then turn it on and immediately press the F11 key (or the manufacturer’s recovery key, often F8, F9, or F12) repeatedly. This should open the recovery environment.
- “Reset this PC” is grayed out or says “There was a problem resetting your PC.” This usually means system files are corrupted. Use the Windows installation media (USB) to boot, then choose “Repair your computer” > “Troubleshoot” > “Reset this PC.” If that still fails, you may need to do a clean install: boot from the USB, delete all partitions, and install Windows fresh.
- The reset asks for a BitLocker recovery key. If your drive was encrypted (common on modern laptops), Windows will ask for a 48-digit recovery key. Check your Microsoft account (account.microsoft.com/devices/recoverykey) or any printout you saved. If you don’t have it, you cannot reset without losing data—you’d need to wipe the drive manually (which erases everything, including the encryption).
- The laptop reboots into the same login screen after reset. This can happen if the reset didn’t complete properly. Try the process again, but this time choose “Cloud download” and make sure the laptop stays plugged in.
- You see “Choose an option” but no “Reset this PC.” Go to Troubleshoot > Advanced options > Reset this PC. If it’s missing, your recovery partition is damaged. Use the USB installation media instead.
Frequently Asked Questions
Will a factory reset remove the password?
Yes, a full reset (“Remove everything”) deletes all user accounts and passwords. After the reset, you’ll set up a new account with a new password.
Can I reset a laptop without a password using Command Prompt?
In the recovery environment (Shift+Restart), you can open Command Prompt from Troubleshoot > Advanced options. However, using it to bypass the password is not a supported method and may not work on modern Windows. The reset method described above is the reliable way.
Do I need a Microsoft account to reset?
No, you can reset without a Microsoft account. But if the laptop was linked to one, you may need that account’s password during the initial setup after the reset. If you don’t have it, you can click “Forgot password” on the Microsoft login page to recover it.
How long does a factory reset take?
Typically 30 minutes to 2 hours, depending on the laptop’s speed and whether you choose Cloud download (which requires downloading several gigabytes). Make sure the laptop is plugged in the entire time.
Will a factory reset remove viruses?
Yes, a full reset removes all software, including malware, because it reinstalls Windows from scratch. However, if the virus is in the firmware (very rare), it may survive. A reset is generally effective against most viruses.
Can I recover files after a factory reset?
No, a full reset permanently deletes all files. If you didn’t back up, you’d need data recovery software (which may not work if the drive was overwritten). Always back up before resetting.
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
- How to Access Gmail with Mozilla Thunderbird
- Fix Broken Icons on Windows 11
- Prepare Your Nothing Phone for an Android Update
- Fix AirPlay Not Working on Roku
- Fix Zoom No Sound on PC: Step-by-Step Guide
- How to Retrieve Deleted Voicemail on iPhone