Factory reset is the nuclear option, but it works when nothing else does
A factory reset wipes your Windows 10 computer back to the state it left the factory — all your files, programs, and settings vanish. You do not need your password to start the reset, but you do need either physical access to the machine while it is powered on, or a way to boot from a USB drive or installation media. The reset process itself takes 20 minutes to an hour depending on your drive speed, and afterward you will set up Windows as if it were brand new.
This is a last resort. If you have any other way to regain access — a password hint, a recovery email, a second admin account on the machine — those are faster and less destructive. But if you are locked out completely and do not care about keeping your files, a factory reset will get you back into a working computer.
Key Takeaways
- A factory reset erases everything on the drive and returns Windows to its original state, so back up any files you want to keep before you start.
- You can reset from the login screen itself if you have physical access to the powered-on computer, without needing a USB drive or installation media.
- The reset-from-login-screen method works only on Windows 10 version 1803 or later, which you can check in Settings before you get locked out.
- If the login screen method does not work, you will need a second computer to create bootable installation media on a USB drive.
- After the reset completes, you will go through Windows setup again and create a new password from scratch.
Reset directly from the Windows 10 login screen
If you are sitting in front of the computer and can see the login screen, this is the fastest path. Look for a link that says "Reset this PC" or "I forgot my password" — the exact wording changed between Windows 10 versions, but it is always on the login screen itself, usually in the bottom left corner or as a blue link below the password field.
Click that link. Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything" — this is the factory reset. The system will then ask you to confirm and warn you that all your files will be deleted. Confirm again, and Windows will begin the reset process. Do not turn off the computer during this time. When it finishes, you will see the Windows setup screen, and you can create a new password.
This method works on Windows 10 version 1803 and later. If you are on an older version, you will not see this option on the login screen, and you will need to use the USB method instead.
Create bootable installation media if the login screen method is not available
If the login screen has no reset link, or if you cannot access the login screen at all, you need a second computer and a USB drive (8 GB or larger). Go to the Microsoft Windows 10 read page on the working computer and read the Windows 10 Media Creation Tool. This is a free tool from Microsoft that builds a bootable USB drive.
Plug the USB drive into the working computer. Open the Media Creation Tool, accept the license terms, and choose "Create installation media for another PC." Select your language, edition (usually Windows 10), and architecture (64-bit for most modern computers, 32-bit only if you are certain your locked computer is 32-bit). Choose USB flash drive as your media type, select your USB drive from the list, and let the tool finish. This takes 10 to 15 minutes.
When the tool finishes, eject the USB drive safely and plug it into the locked computer. Power on the locked computer and watch for a boot menu prompt — usually "Press F12" or "Press DEL" or "Press ESC," depending on the manufacturer. If you miss it, restart and try again. From the boot menu, select the USB drive. Windows setup will load from the USB, and you can proceed to the reset.
Run the reset from Windows setup on the USB
Once Windows setup loads from the USB, you will see a screen asking what you want to do. Look for a link or button that says "Repair your computer" or "Troubleshoot." Click it. You will then see options for "Reset this PC" or "Reset your PC." Choose that option.
Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything." Confirm the warning, and Windows will begin the reset. The process pulls the fresh Windows files from the USB drive and writes them to your hard drive, erasing everything in the process. This takes 30 to 60 minutes depending on your drive speed. Do not interrupt it.
When the reset finishes, the computer will restart and show you the Windows setup screen. Remove the USB drive at this point. You will then go through the normal Windows setup — choosing your language, region, keyboard layout, and creating a new local account with a new password. After setup completes, you will have a working Windows 10 computer with no password set yet, and you can log in and set a password in Settings.
What happens to your files and programs
A factory reset deletes everything: your documents, photos, email, browser history, installed programs, and any settings you customized. Windows itself is restored to the state it shipped in, with only the default programs and settings. If you have files you need to keep, you cannot recover them after a reset — they are gone.
If your files are still on the drive and you have not yet reset, consider whether there is any other way to regain access first. A password reset through a recovery email or a second admin account will let you keep your files. Only choose factory reset if you are certain you do not need anything on the drive, or if you have already backed up what matters to you on an external drive or cloud storage.
Troubleshooting if the reset gets stuck or fails
If the reset starts but hangs on a particular screen for more than 10 minutes, or if you see an error message, try restarting the computer and beginning again. If you are using the USB method, make sure the USB drive is plugged in firmly and has not been disconnected during the process.
If the reset fails repeatedly with an error, your hard drive may be failing or corrupted. In that case, you will need to take the computer to a repair shop — a factory reset cannot fix hardware problems. If the reset completes but Windows will not boot afterward, try the reset again from the USB drive, or contact a technician.
Preventing this situation in the future
Once you have regained access, set up a password recovery method so you do not get locked out again. In Settings, go to Accounts and then "Sign-in options." Add a recovery email address and a recovery phone number to your Microsoft account. If you forget your password next time, you can use either of those to reset it without wiping the computer.
You can also create a password reset disk on a USB drive while you still remember your password. Go to Control Panel, search for "Create a password reset disk," and follow the steps. Keep that USB drive in a safe place. If you forget your password later, you can plug in the reset disk and use it to create a new password without losing your files.
Frequently Asked Questions
Will a factory reset remove viruses or malware?
Yes. A factory reset wipes the entire drive and installs a fresh copy of Windows, so any malware is deleted along with everything else. However, if the malware infected your external drives or cloud storage, it will still be there. After the reset, scan any external drives before you plug them back in.
Can I factory reset a Windows 10 computer that will not turn on?
Not without opening the case and removing the hard drive to wipe it on another computer. If the computer will not power on at all, the problem is likely hardware, not a forgotten password. Take it to a repair shop.
What if I need my files back after a factory reset?
Once the reset is complete, your files are gone and cannot be recovered through Windows. If you need them, you will need data recovery software or a professional data recovery service, both of which are expensive and not always successful. This is why backing up before a reset is critical.
Do I need a product key to complete the factory reset?
No. Windows 10 will set up automatically after the reset if your computer was previously activated. If it was not, you will see a watermark on the desktop, but Windows will still be fully functional. You can purchase a product key later if you want to remove the watermark.
How long does a factory reset actually take?
The reset process itself takes 20 to 60 minutes depending on your drive speed and how much data is on the drive. Windows setup afterward takes another 10 to 20 minutes. Plan for at least an hour total, and do not turn off the computer during this time.