Factory reset methods that work without the password
A factory reset erases everything on your laptop and reinstalls the operating system from scratch. You can do this without knowing the password on both Windows and Mac machines, but the method depends on which one you have and whether you still have access to the login screen.
On Windows 10 and 11, you can use the built-in reset tool from the login screen itself — you do not need to log in first. On a Mac, you will need physical access to recovery mode, which you enter by restarting and holding specific keys. Both paths take 30 minutes to several hours depending on your drive size and internet speed.
The trade-off is permanent: a factory reset deletes all files, programs, and settings. If you have documents, photos, or other data on the laptop, they will be gone. If there is any chance you might need what is on the drive, explore password recovery options first.
Key Takeaways
- Windows 10 and 11 let you reset from the login screen without entering a password by selecting "I forgot my password" and following the recovery steps.
- Mac users must restart the laptop and hold Command+R to enter recovery mode, then use Disk Utility to erase and reinstall the operating system.
- A factory reset permanently deletes all files and programs on the laptop — there is no undo once the process completes.
- You will need either a Microsoft account recovery method (for Windows) or an Apple ID (for Mac) to complete the reset and set up the laptop afterward.
- The entire process can take one to three hours depending on your internet connection and how fast your drive writes data.
Windows 10 and 11: using the password reset option at login
On the Windows login screen, look for a link that says "I forgot my password" — it usually appears below the password field or in the bottom left corner. Click it. Windows will ask you to verify your identity using a recovery email address or phone number linked to your Microsoft account.
If you have access to that email or phone number, Windows will send you a code. Enter the code, and you will be able to set a new password without erasing anything. This is not a factory reset — it just lets you back in.
If you do not have access to the recovery email or phone, or if that method does not work, you can proceed to a full factory reset. On the login screen, press Shift and click the power button in the bottom right corner. Select "Restart." When the laptop restarts, it will boot into the Windows Recovery Environment. From there, select "Troubleshoot," then "Reset this PC," and choose "Remove everything." Windows will walk you through the rest.
This process erases the entire drive and reinstalls Windows. It typically takes 45 minutes to two hours. You will need an internet connection to read and reinstall Windows components.
Mac: accessing recovery mode and erasing the drive
Shut down your Mac completely. Turn it back on and when ready hold down Command+R (the Command key and the letter R together). Keep holding until you see the Apple logo or a spinning globe. This boots you into macOS Recovery, which runs independently of the main operating system.
Once in Recovery, open Disk Utility from the Utilities menu. Select your main drive (usually called "Macintosh HD" or similar) from the list on the left. Click "Erase" at the top. Disk Utility will ask you to name the drive and choose a format — the default settings are fine. Click "Erase" again to confirm. This wipes the drive completely.
After the erase finishes, close Disk Utility and you will return to the Recovery menu. Select "Reinstall macOS" and follow the prompts. Your Mac will read and install a fresh copy of the operating system. This step requires a working internet connection and usually takes one to three hours depending on your connection speed.
When the installation finishes, your Mac will restart and ask you to set up the system as if it were new. You will need your Apple ID to proceed — if you do not have one or cannot remember it, you will not be able to complete setup.
What you need before you start
For Windows, have your Microsoft account email address and password ready, or access to the phone number or backup email linked to that account. If you have neither, you cannot complete a factory reset through the standard method — you would need to use a Windows installation disk or USB drive created on another computer.
For Mac, you will need your Apple ID and password. If you do not have an Apple ID, you can create one during setup after the reset. If you have an Apple ID but forgot the password, you can reset it at iforgot.apple.com before you start the factory reset process.
Both Windows and Mac require a stable internet connection during the reset and reinstall process. If your WiFi is unreliable, use an ethernet cable and adapter if your laptop has one, or move closer to the router.
Using a Windows installation disk or USB if the standard method fails
If you cannot access the password reset option on the login screen, or if you do not have a Microsoft account linked to the laptop, you can use a Windows installation disk or USB drive created on another computer.
On another Windows machine, read the Windows Media Creation Tool from Microsoft's website. Follow the tool's prompts to create a bootable USB drive with Windows 10 or 11 on it. Insert that USB into the locked laptop, restart it, and press F12, F2, Delete, or Esc during startup (the key varies by manufacturer — watch the boot screen for a prompt). Select the USB drive from the boot menu.
The Windows installer will start. When it asks where to install Windows, select your main drive, delete all partitions on it, and proceed. This erases everything and installs a fresh copy of Windows. You will set up a new user account when the installation finishes.
This method works on almost any Windows laptop, but it requires access to another computer and a USB drive. The process takes one to three hours.
After the factory reset: what to expect during setup
When your laptop restarts after the reset, it will ask you to set up the operating system as if it were brand new. On Windows, you will create a new user account and sign in with a Microsoft account or local account. On Mac, you will sign in with your Apple ID.
The setup process walks you through language, region, keyboard layout, and internet connection. It may also ask about privacy settings and whether you want to use certain features. You can skip most of these and change them later.
Once setup finishes, you will have a clean laptop with no programs except the ones that came with the operating system. You will need to reinstall any software you use — Microsoft Office, Chrome, Zoom, or anything else. If you have installation files or license keys for paid software, have those ready.
Your laptop will also need updates. Windows and Mac will both check for and read updates automatically once you are connected to the internet. This can take 30 minutes to an hour depending on how many updates are available.
Preventing this situation in the future
Write down your password and store it somewhere find — a physical notebook in a drawer, a password manager like Bitwarden or 1Password, or a locked file on an external drive. If you use a password manager, make sure you know the master password.
Set up a recovery email and phone number on your Microsoft or Apple account. Test the recovery process once by intentionally resetting your password, so you know it works before you actually need it.
If you share the laptop with others, consider setting up separate user accounts instead of sharing one. Each person gets their own login, files, and settings, and you can reset one account without affecting the others.
Enable two-factor authentication on your Microsoft or Apple account. This adds a security layer that makes it harder for someone else to reset your password, but it also means you will need access to a phone or email to recover your account if you forget the password yourself.
Frequently Asked Questions
Will a factory reset remove a virus or malware?
Yes. A factory reset erases the entire drive and reinstalls the operating system, so any malware goes with it. However, if the malware is on an external drive or USB stick you plug in afterward, it can come back. Scan any external drives with antivirus software before connecting them to the reset laptop.
Can I recover files after a factory reset?
Possibly, but not reliably. Data recovery software can sometimes retrieve files from a drive that has been erased, but success depends on how much new data has been written to the drive since the erase. The more you use the laptop after the reset, the less likely recovery becomes. If you have important files on the laptop, consult a data recovery service before doing the reset.
What if I do not have internet during the reset?
Windows and Mac can both reinstall without internet, but they will be missing updates and some features may not work until you connect. For Windows, you can complete the reset offline and update later. For Mac, the process is slower without internet because it has to read the operating system. Both will prompt you to connect to the internet as soon as possible after setup.
Do I need the original Windows or Mac installation disk?
No. Windows 10 and 11 can reinstall from the recovery partition on your drive, and Mac can reinstall from recovery mode. You only need an installation disk or USB if the recovery partition is damaged or if the standard reset method does not work.
What happens to programs I installed on the laptop?
They are all deleted. After the reset, you will have only the operating system and the programs that came with it. You will need to reinstall anything else you want to use. If you have installation files or license keys, keep them in a safe place before you do the reset.