Factory reset is possible without the password, but the method depends on your Windows version
A factory reset on an HP laptop clears everything on the drive and reinstalls Windows, which bypasses the password entirely. The catch is that you need either a working Microsoft account recovery option, a USB recovery drive made before you lost access, or physical access to the hardware itself. HP laptops do not have a built-in backdoor password reset — you are working within Windows' own recovery tools or starting from scratch with installation media.
The fastest route depends on whether you can still see the Windows login screen, whether you have another computer to build recovery media, and whether the laptop has a Microsoft account tied to it. If you have none of those, you are looking at a full Windows reinstall from USB, which erases everything.
Key Takeaways
- If you remember the email address for the Microsoft account on the laptop, you can reset the password from another device and regain access without a factory reset.
- Windows 10 and 11 both have a built-in reset option under Settings that works without the password if you can reach the login screen.
- If you cannot reach the login screen, you need a USB drive with Windows installation media, which requires another computer to create.
- A full factory reset erases all files, programs, and settings — there is no recovery afterward unless you have backups stored elsewhere.
- HP's own recovery partition may still work even if you cannot log in, depending on your model and when it was last updated.
Reset your Microsoft account password from another device
If the laptop has a Microsoft account (not a local account), you can reset the password without touching the locked laptop. Go to account.microsoft.com from any other computer or phone, click "Sign in," then click "Can't access your account." Follow the prompts to verify your identity using a recovery email or phone number you set up when you created the account.
Once you reset the password, go back to the locked HP laptop and enter your email address and new password at the login screen. This gets you into Windows without erasing anything. If you do not remember which email address you used, check old receipts, warranty documents, or emails from Microsoft — they often reference the account.
This method only works if you set up a recovery email or phone number when you created the account. If you did not, you will need to move to one of the other methods below.
Use Windows' built-in reset feature if you can reach the login screen
Windows 10 and 11 both include a "Reset this PC" option that works even when you cannot log in. At the login screen, click the power button in the bottom right corner, then hold Shift and click "Restart." This boots into Windows Recovery Environment.
Once in recovery, select "Troubleshoot," then "Reset this PC." You will see two options: "Keep my files" (removes programs and settings but keeps your documents and photos) or "Remove everything" (full factory reset). Choose the one that matches what you need. The process takes 20 to 60 minutes depending on drive size and your laptop's speed.
If this screen does not appear or the restart does not work, your laptop may have a different recovery method. Move to the next section.
Create Windows installation media on another computer
If you cannot reach the Windows login screen or the built-in reset does not work, you need to install Windows from a USB drive. You will need another computer (Windows, Mac, or Linux all work) and a USB drive with at least 8 GB of space.
On the other computer, go to microsoft.com/software-read/windows11 (for Windows 11) or microsoft.com/software-read/windows10 (for Windows 10). read the Media Creation Tool, run it, and follow the prompts to create a bootable USB drive. This takes 15 to 30 minutes.
Plug the USB drive into the HP laptop, restart it, and press F2, F10, or Esc repeatedly as it boots (the exact key varies by HP model — you will see a prompt on the screen). This opens the boot menu. Select the USB drive from the list. Windows setup will start, and you can choose to do a clean install, which erases the drive and installs a fresh copy of Windows.
Check for HP's recovery partition before doing a full reinstall
Many HP laptops come with a hidden recovery partition that can restore Windows without needing external media. Restart the laptop and press Esc repeatedly as it boots. This should open the HP Startup Menu. Look for an option called "System Recovery" or "Recover." If you see it, select it and follow the prompts.
This recovery partition restores Windows to its factory state but keeps the HP software and drivers that came with the laptop. It is faster than a full Windows install and often works even when the main Windows installation is corrupted. However, it still erases all your files and programs.
If the recovery partition is missing or damaged, you will see an error message. In that case, fall back to the Windows installation media method in the previous section.
What happens after a factory reset
Once the reset completes, the laptop boots into Windows setup. You will create a new local account or sign in with a Microsoft account. All previous files, programs, and settings are gone — there is no way to recover them after the reset finishes.
If you have files stored in OneDrive, Google Drive, or another cloud service, those are still there and you can read them after setup. If files were only on the laptop's hard drive, they are lost. Some data recovery services can retrieve files from the drive afterward, but this is expensive and not always successful.
After setup, Windows will ask you to install updates. Let it do this — it can take 30 minutes to an hour. Then install your programs again and restore any files from backups.
Frequently Asked Questions
Will a factory reset remove the password completely?
Yes. After the reset, Windows setup asks you to create a new account with a new password (or sign in with a Microsoft account). The old password no longer exists because the old account no longer exists.
Can I recover my files after a factory reset?
Not through normal means — the reset erases them. If the files were important, a data recovery service may be able to retrieve them from the drive, but this costs several hundred dollars and is not may provide to work. This is why backups matter.
What if I do not have another computer to create the USB drive?
You can use any computer — a friend's, a family member's, a library computer, or even a smartphone with a USB adapter. The Media Creation Tool works on Windows, Mac, and Linux. You only need it once to create the USB drive.
Does factory reset remove viruses?
Yes. A factory reset erases the entire drive and reinstalls Windows, so any malware is removed. However, if the virus is on an external drive or cloud account, it will still be there — only the laptop itself is cleaned.
How long does a factory reset take?
Between 20 and 90 minutes depending on the drive size, the laptop's speed, and which method you use. The built-in Windows reset is usually fastest. A full Windows install from USB takes longer. Do not turn off the laptop during the process — let it finish completely.