Factory reset wipes your laptop and reinstalls Windows, but you need physical access and the ability to boot from a USB drive
A factory reset erases everything on your HP laptop — all files, programs, and settings — and returns it to the state it shipped in. This is the most thorough way to regain access when you cannot remember your password. The catch: you need to be able to start the reset process before Windows loads, which means you need either a USB drive with Windows installation media or access to HP's recovery partition (if your laptop still has one).
The process takes 30 minutes to two hours depending on your laptop's speed and which method you use. You will lose all your files unless you have backed them up elsewhere. If you do not have a backup and your data matters, consider taking the laptop to an HP service center or a local computer repair shop before you proceed — they may be able to recover files before wiping the drive.
Key Takeaways
- A factory reset erases everything on your laptop and reinstalls Windows, so back up any files you need before you start.
- You need either a USB drive with Windows installation media or access to HP's built-in recovery partition to begin the reset.
- The reset process happens outside of Windows, before your password is even checked, so a forgotten password does not stop you.
- After the reset completes, you will boot into a fresh Windows setup where you create a new password from scratch.
- If you cannot access the boot menu or recovery partition, a local repair shop can perform the reset for you, usually for $50 to $150.
Check whether your HP laptop has a recovery partition
Many HP laptops come with a recovery partition — a hidden section of the hard drive that holds a copy of Windows. If yours has one, you can start a reset without needing a USB drive. To check, restart your laptop and watch the screen as it boots. You should see a message that says something like "Press Esc for Startup Menu" or "Press F9 for Recovery Manager." The exact key varies by model, but it usually appears for only a few seconds.
If you see that message and press the right key, you will enter HP's recovery tool. From there, you can choose "Reset this PC" or "System Recovery" (the exact wording depends on your Windows version and HP model). If you do not see any message, or if you press the key and nothing happens, your laptop either does not have a recovery partition or it has been deleted. In that case, move to the USB method.
Create Windows installation media on a USB drive
If your HP laptop does not have a recovery partition, you will need to create a bootable USB drive with Windows on it. You will need another computer (a friend's laptop, a library computer, or a work computer) and a USB drive with at least 8 GB of space. Everything on the USB drive will be erased, so use one that is empty or that holds only files you do not need.
Go to Microsoft's website and read the Windows installation tool called the Media Creation Tool. Run it on the other computer, choose "Create installation media for another PC," and follow the prompts. Select your Windows version (check your HP's original paperwork or the sticker on the bottom of the laptop to see whether it came with Windows 10 or Windows 11). The tool will read Windows and copy it to your USB drive. This takes 10 to 20 minutes depending on your internet speed.
Once the USB drive is ready, plug it into your HP laptop and restart. As the laptop boots, press F9 or Esc (watch the screen for the prompt) to enter the boot menu. Select the USB drive from the list. Your laptop will boot from the USB and show you the Windows setup screen.
Start the reset from the Windows setup screen
When you boot from the USB drive or recovery partition, you will see the Windows setup screen with a language and keyboard layout selection. Do not click "Install Now." Instead, look for a link at the bottom left that says "Repair your computer" or "Troubleshoot." Click that link.
You will then see a menu with options like "Reset this PC," "Go back to the previous version," or "Advanced options." Choose "Reset this PC." Windows will ask whether you want to keep your files or remove everything. Select "Remove everything" — this is the factory reset that will let you regain access. Windows will then ask where to reinstall from. Choose "Local reinstall" if the option appears; if not, Windows will proceed automatically.
Complete the reset and create a new password
Windows will now erase your hard drive and reinstall itself. This takes 20 minutes to an hour. Your laptop will restart several times. Do not unplug it or close the lid during this process. When the reset finishes, your laptop will boot into the Windows setup screen again, but this time as a fresh installation.
You will be asked to choose a region, keyboard layout, and internet connection. Then you will create a new user account and password. Use a password you will remember this time, or write it down and store it somewhere safe. Once you finish setup, you will be at the Windows desktop with a clean laptop and no files from before the reset.
Recover your files if you have a backup
If you backed up your files to an external hard drive, cloud storage (like OneDrive, Google Drive, or Dropbox), or another computer before the reset, you can restore them now. Plug in the external drive or sign into your cloud account and read your files back to the laptop. If you do not have a backup, the files are gone — a factory reset cannot be undone.
If you had important files and did not back them up, a data recovery service may be able to retrieve some of them, but this is expensive (often $300 to $1,000) and not may provide to work. It is worth asking a local computer repair shop whether they offer data recovery before you pay for a professional service.
What to do if you cannot access the boot menu or recovery partition
If you press F9 or Esc and nothing happens, or if you cannot get the USB drive to boot, the problem is usually one of these: the USB drive was not created correctly, the boot order in BIOS is set wrong, or the laptop's BIOS is locked. Troubleshooting BIOS settings requires opening the laptop's settings before Windows loads, which is harder without a password.
At this point, your best option is to take the laptop to a local computer repair shop. They have tools and experience to reset BIOS settings, create bootable media correctly, and perform the factory reset. Most shops charge $50 to $150 for this service. If the laptop is still under warranty, you can also contact HP support, though they may require proof of ownership and will likely charge a service fee.
Frequently Asked Questions
Will a factory reset remove a password I forgot?
Yes. A factory reset erases Windows entirely and reinstalls it fresh, so any password tied to the old installation is gone. After the reset, you create a new password from scratch. This is why a factory reset works even when you cannot log in.
Can I factory reset an HP laptop without losing my files?
Windows offers a "Keep my files" option during reset, but it is not reliable when you cannot log in first. The safest approach is to assume you will lose everything, back up what you need beforehand, and then do a full reset. If you have already lost access, a local repair shop may be able to recover files before wiping the drive.
What if I do not have another computer to create the USB drive?
You will need to borrow one — a friend's laptop, a library computer, or a computer at work. The Media Creation Tool is free and takes 10 to 20 minutes to run. Alternatively, ask a local repair shop to create the USB drive for you; many will do this for $10 to $20.
How long does a factory reset take?
The reset itself takes 20 minutes to an hour, depending on your laptop's hard drive speed. Adding the time to create the USB drive, boot from it, and set up Windows afterward, plan for two to three hours total from start to finish.
Do I need the Windows product key to factory reset an HP laptop?
No. HP laptops come with Windows pre-installed and the product key is stored in the laptop's firmware, so Windows will reactivate automatically after the reset. You do not need to enter a key manually.