The fastest way back in depends on what you remember and what you set up before
If you are locked out of your Windows computer, you have several paths back in — but none of them work if you have no recovery options set up. The speed and difficulty of each method depends on whether you used a Microsoft account or a local account, whether you set up a password reset disk or recovery email, and whether you can access another computer.
The most common scenario is a Microsoft account with a recovery email you can still reach. That path takes about 15 minutes. A local account with no recovery options set up is much harder and may require you to reset Windows entirely, which erases your files. Start by identifying which type of account you have — you can see this on the login screen itself.
Key Takeaways
- A Microsoft account with a recovery email attached is the fastest route: you reset your password online from another device, then log in with the new one.
- A local account with no recovery email or phone number requires either a password reset disk (if you made one before) or a full Windows reinstall, which deletes your files.
- If you have physical access to the computer and it is running Windows 10 or 11, you can use the built-in password reset prompt on the login screen, which works if you remember security questions or have a recovery email.
- A password reset disk created before you forgot your password is the only recovery method that works offline without erasing anything.
- If you have no recovery options and no reset disk, your only path forward is to reinstall Windows, which requires a USB drive and erases all files on that drive.
Resetting a Microsoft account password from another device
If your Windows login uses a Microsoft account (the email address you see on the login screen), you can reset the password from any other computer or phone with internet access. Go to account.microsoft.com and click "Sign in". On the next screen, click "Can't access your account?"
Microsoft will ask you to enter the email address associated with your account. Then it will ask how you want to verify your identity — usually by sending a code to your recovery email or phone number. If you can receive that code, enter it, and Microsoft will let you create a new password. Once you have set the new password, go back to your locked Windows computer and log in with the new one.
This method works only if you set up a recovery email or phone number before you forgot your password. If you did not, Microsoft will ask you security questions instead. You must answer them correctly to proceed.
Using the password reset prompt on the Windows login screen
On the Windows 10 and 11 login screen, if you have forgotten your password, click "I forgot my password" below the password field. Windows will walk you through a series of security questions or send a reset code to your recovery email or phone.
This works only if you set up those recovery options before you locked yourself out. If you did not, Windows will tell you so and offer no other path forward on that screen. You will need to use a different method.
If you do have recovery options set up, Windows will send a code to your email or phone. Enter that code on the login screen, and Windows will let you create a new password without erasing anything on your computer.
Using a password reset disk if you created one before
If you created a password reset disk on a USB drive before you forgot your password, you can use it to regain access without losing any files. Insert the USB drive into the locked computer, click "Reset password" on the login screen, and Windows will walk you through creating a new password using the disk.
This method is the only one that works completely offline and does not require you to remember security questions or have access to a recovery email. However, it only works if you actually made the disk before you forgot your password — you cannot create one after you are locked out.
If you have a reset disk but are not sure whether it will work, try it. There is no penalty for attempting it, and if it works, you are back in within a few minutes.
Reinstalling Windows when you have no recovery options
If you have no recovery email, no phone number on file, no password reset disk, and cannot answer your security questions, your only option is to reinstall Windows. This erases all files on the drive where Windows is installed, so use this only as a last resort.
To reinstall Windows, you need another computer and a USB drive with at least 8 GB of storage. 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.
Insert the USB drive into the locked computer, restart it, and press the key that opens the boot menu — usually F12, F2, Esc, or Del, depending on your computer model. Select the USB drive from the boot menu. Windows Setup will start. Choose "Repair your computer" and then "Reset this PC". Select "Remove everything" to erase the drive and reinstall Windows. This process takes 20 to 45 minutes and erases all files on that drive.
What to do if you cannot access another computer or USB drive
If you do not have access to another computer or a USB drive, you cannot regain access to your Windows computer on your own. You will need to take it to a repair shop or contact the manufacturer's support line. Some repair shops can recover files before reinstalling Windows, though this costs money and is not may provide.
Before you take the computer anywhere, be aware that a technician will be able to see all files on the drive, including personal documents and photos. If privacy is a concern, ask the shop about their data handling practices before you hand over the computer.
Preventing this from happening again
Once you regain access, set up recovery options when ready so you never face this situation again. For a Microsoft account, go to account.microsoft.com, click "Security", and add a recovery email and phone number. For a local account, open Settings, go to Accounts > Security options, and create a password reset disk on a USB drive you keep in a safe place.
Write down your password in a physical location only you know about — a notebook in a locked drawer, not a sticky note on your monitor. If you use a password manager like Bitwarden or 1Password, store your Windows password there as well, but only if you can access the password manager from another device if you get locked out.
Frequently Asked Questions
Can I reset my password without erasing my files?
Yes, if you have a recovery email, phone number, password reset disk, or can answer your security questions. All of these methods let you create a new password without losing anything. Only a full Windows reinstall erases files, and that is the last resort when no other recovery option exists.
How long does it take to regain access?
If you have a recovery email or phone, 15 to 30 minutes. If you have a password reset disk, 5 to 10 minutes. If you have to reinstall Windows, 45 minutes to 2 hours. If you have no recovery options and must take the computer to a repair shop, it depends on their schedule and workload.
Will I lose my files if I reinstall Windows?
Yes. Reinstalling Windows erases all files on the drive where Windows is installed. Files on a separate drive or external storage are not affected. Before you reinstall, explore every other recovery option first.
What if I do not remember my security questions?
If you cannot answer your security questions and have no recovery email or phone number, you cannot reset your password through Microsoft's website. Your only path forward is a password reset disk (if you made one) or a full Windows reinstall.
Can someone else reset my password for me?
No. Only you can reset your password, or a technician at a repair shop by reinstalling Windows. Microsoft support cannot reset your password for you — they can only walk you through the self-service process.