Factory reset methods that work without the password
A factory reset clears everything on your computer and reinstalls the operating system from scratch, which bypasses the password entirely. The method depends on whether you have a Windows or Mac machine, and whether you can access the computer at all or are locked out completely.
On Windows, you can reset from the login screen itself if you reach it — you do not need the password to start the process. On a Mac, you will need either your Apple ID or physical access to recovery mode. Both paths take 30 minutes to several hours depending on your drive size and internet speed.
The trade-off is total: a factory reset erases all your files, programs, and settings. If you have documents, photos, or other data on the drive that you need, explore password recovery options first. If the computer is yours and you straightforward forgot the password, or if you inherited a machine from someone else, a factory reset is the cleanest route forward.
Key Takeaways
- Windows lets you reset directly from the login screen without entering a password, using the "Reset this PC" option in Settings.
- Mac computers require either your Apple ID credentials or access to Recovery Mode, which you enter by restarting and holding Command+R.
- A factory reset erases everything on the drive — all files, programs, and user data — so back up anything you need first if possible.
- After reset, you will set up the computer as new, create a new user account, and reinstall any programs you want to keep.
- The process takes 30 minutes to several hours depending on drive size and internet connection speed.
Windows: resetting from the login screen
If you can reach the Windows login screen but do not know the password, click the power button in the bottom right corner. Hold it down until the screen goes black — this forces a shutdown. Turn the computer back on and let it boot normally. After a few failed restart attempts, Windows will offer a "Reset this PC" option on the login screen.
Click that option and choose "Remove everything." Windows will ask whether you want to remove files locally or use cloud reset. Local removal is faster if your internet is slow. The system will then reinstall Windows and restart several times. You will be prompted to set up a new user account and password when it finishes.
If the reset option does not appear after a few restart attempts, you can also access it through Settings if you can get past the login screen any other way — for instance, if there is a guest account enabled or if you know any other user password on the machine.
Windows: using installation media if you are completely locked out
If you cannot reach the login screen or the reset option does not appear, you will need to create a Windows installation USB drive on another computer. Go to microsoft.com/software-read/windows and read the Windows installation tool. Plug in a blank USB drive (8 GB or larger) and run the tool to create bootable media.
Insert the USB drive into the locked computer and restart it. You may need to press a specific key during startup — usually F12, Esc, or Del — to enter the boot menu and select the USB drive. Once Windows setup begins, look for a "Repair your computer" or "Troubleshoot" option. From there, you can access the factory reset tools without needing a password.
This method is more involved than the login-screen reset, but it works when the computer will not start normally or when you have no other way in.
Mac: using your Apple ID in Recovery Mode
Restart your Mac and when ready hold down Command+R until you see the Apple logo. This boots into Recovery Mode. Once the recovery window appears, open Utilities from the menu bar and select Terminal. Type resetpassword and press Enter. This opens the password reset tool without requiring the current password.
You will be asked to select a user account. Choose the one you are locked out of, then enter a new password twice. You do not need the old password — the tool resets it directly. Click "Save" and restart the Mac. You can now log in with the new password you just created.
If you do not remember your Apple ID or cannot access it, this method will not work. In that case, you will need to proceed with a full factory reset instead.
Mac: factory reset when you cannot use Recovery Mode
If you have an Apple ID and password, use the password reset method above — it is faster and preserves your data. If you do not have access to your Apple ID, restart the Mac and hold Command+R to enter Recovery Mode. From the Utilities menu, select Disk Utility.
Select your main drive (usually called "Macintosh HD") from the list on the left. Click "Erase" at the top, choose a format (APFS for newer Macs, Mac OS Extended for older ones), and confirm. This wipes the drive. Once erasing finishes, close Disk Utility and select "Reinstall macOS" from the Recovery Mode menu. The system will read and install a fresh copy of macOS, then restart and prompt you to set up a new user account.
This process requires a stable internet connection and can take one to three hours depending on your Mac model and internet speed.
What to expect after the factory reset
When the reset finishes, the computer will restart and show a setup screen as if it were brand new. You will create a new user account with a new password, choose your language and region, and connect to Wi-Fi. On Windows, you can choose to set up with a Microsoft account or a local account. On Mac, you will be prompted for an Apple ID but can skip it if you do not have one.
After setup, the desktop will be empty except for default programs. You will need to reinstall any software you want — web browsers, office programs, media players, and so on. If you have installation files or product keys saved elsewhere, gather those before you start. For programs you purchased through the Microsoft Store or Mac App Store, you can read them again using the same account.
Your files are gone permanently after a factory reset. If there was anything on the drive you needed, it cannot be recovered through normal means. If you realize too late that you needed something, a data recovery service may be able to retrieve it, but this is expensive and not always successful.
Preventing this situation in the future
Once you have set up your new account, write down your password somewhere safe — a physical notebook in a drawer, a password manager like Bitwarden or 1Password, or a trusted family member. Do not store it in a text file on the computer itself.
On Windows, add a password hint to your account. Go to Settings, select Accounts, and look for "Password options." You can add a hint that will appear on the login screen if you forget. On Mac, make sure you know your Apple ID password and keep it separate from your computer password.
Set up a backup routine so that if you ever need to reset again, your important files are safe. Windows includes File History (Settings > System > Storage > Advanced storage options > Backup options). Mac includes Time Machine (System Settings > General > Time Machine). Both are built-in and free.
Frequently Asked Questions
Will a factory reset remove viruses or malware?
Yes. A factory reset wipes the entire drive and reinstalls the operating system fresh, which removes any malware that was installed. However, if malware is on an external drive or USB device you connect afterward, it can return. After reset, install antivirus software and keep it updated.
Can I recover my files after a factory reset?
Not through normal means. Once you reset, the files are overwritten as you use the computer. If you act when ready and do not use the computer, a data recovery service may retrieve some files, but this is expensive and not may provide. Prevention through backup is much more reliable.
Do I need the original Windows or Mac installation disc?
No. Windows can be downloaded free from Microsoft's website and installed on a USB drive. Mac can read macOS during Recovery Mode. You do not need a physical disc or a product key for the reset itself, though you may need one to set up Windows after setup if it was not pre-installed on your machine.
What if the computer will not boot at all?
If it will not turn on or shows only a black screen, the issue is likely hardware, not a forgotten password. Try a hard reset by holding the power button for 10 seconds, waiting 30 seconds, and turning it back on. If that does not work, the drive or motherboard may need repair. A factory reset will not fix hardware problems.
Can I reset just one user account instead of the whole computer?
On Windows, yes — use the password reset tool in Settings if you can access the computer at all. On Mac, use the Terminal method in Recovery Mode to reset the password without erasing. A full factory reset is only necessary if you cannot access those tools or if you want to erase everything for privacy reasons.