The fastest way depends on what you remember and what you set up before
If you forgot your Windows password, the path forward depends on whether you use a Microsoft account or a local account, and whether you set up a recovery email or phone number. A Microsoft account tied to your email is usually fastest — you can reset it from another device without touching the locked PC. A local account with no recovery method requires either a password reset disk (if you made one earlier) or reinstalling Windows, which erases your files.
The methods below work on Windows 10 and Windows 11. If you use a Mac, the process is different — you would restart in Recovery Mode and use your Apple ID or a recovery key instead.
Key Takeaways
- A Microsoft account password can be reset from any web browser by visiting account.microsoft.com, which is faster than fixing it on the locked PC itself.
- A local account without a recovery email requires a password reset disk created before you forgot the password, or a Windows reinstall that will erase your files.
- Windows 10 and 11 both allow you to answer security questions you set up during account creation to reset your password at the login screen.
- If you have physical access to another admin account on the same PC, you can reset the forgotten password from that account's settings without losing files.
Resetting a Microsoft account password from another device
This is the simplest route if your Windows login is connected to a Microsoft account. Go to account.microsoft.com on any computer, phone, or tablet with internet access. Click "Sign in" and enter the email address you use to log into Windows. When prompted for your password, click "Can't access your account."
Microsoft will ask you to prove you own the account by sending a code to your recovery email or phone number. Enter the code, then create a new password. Once you save it, you can go back to your locked PC and log in with the new password at the login screen. This usually works within minutes.
If you no longer have access to your recovery email or phone, Microsoft will ask you security questions instead — the ones you answered when you created the account. Answer them correctly and you can still reset your password without leaving your house.
Using security questions at the Windows login screen
On the Windows 10 or 11 login screen, click "I forgot my password" below the password field. Windows will show you the security questions you set up during account creation — typically three questions like "What is your mother's maiden name?" or "What was the name of your first pet?"
Answer all three correctly and Windows will let you create a new password right there. You do not need internet access or another device. This works for both Microsoft accounts and local accounts, as long as you remember your answers.
If you cannot remember the answers, this path closes — you will need to use a password reset disk or reinstall Windows instead.
Resetting a local account password from another admin account
If someone else on your household uses a different admin account on the same PC, they can reset your password without erasing your files. Have them log in with their account, then open Settings and go to Accounts > Other people. Find your account in the list, click it, and select "Reset password."
They will not need your old password. Windows will let them set a new one when ready. You can then log in with that new password. Your files, programs, and settings stay intact.
This only works if the other account has admin rights. A standard user account cannot reset another account's password.
Using a password reset disk you created earlier
If you created a password reset disk before you forgot your password, you can use it now. Insert the USB drive or floppy disk into your locked PC. At the Windows login screen, click "I forgot my password," then select "Use a password reset disk" or "Reset password using a recovery disk."
Windows will walk you through creating a new password. The disk itself does not contain your password — it contains a key that lets Windows let you create a new one. Once you finish, remove the disk and log in normally.
If you never created a reset disk, this option will not appear on your login screen, and you cannot use this method.
Reinstalling Windows as a last resort
If you have no recovery email, no security question answers, no other admin account, and no password reset disk, reinstalling Windows is your remaining option. This erases everything on your PC — all files, programs, and settings — and returns it to a blank state.
You will need another computer to read Windows 10 or Windows 11 onto a USB drive using the Windows Media Creation Tool (available free from Microsoft's website). Insert that drive into your locked PC, restart it, and boot from the USB drive. Follow the on-screen prompts to reinstall Windows. When installation finishes, you can create a new account and log in.
Before you do this, consider whether your files are backed up elsewhere. Once you reinstall, they are gone from the PC. If your files are on OneDrive, Google Drive, or an external hard drive, you can restore them after Windows is reinstalled.
Preventing this from happening again
Once you are back in your account, set up recovery options so you never get stuck again. Open Settings, go to Accounts > Security options, and add a recovery email address and phone number. Write down your security question answers and store them somewhere safe — not on the PC itself.
If you use a local account, create a password reset disk now. Go to Settings > Accounts > Sign-in options, scroll down to "Password," and click "Create a password reset disk." Windows will walk you through saving a recovery key to a USB drive.
Consider switching to a Microsoft account if you do not already use one. Microsoft accounts are harder to lock yourself out of because you can reset them from any device with internet access.
Frequently Asked Questions
Can I reset my password without losing my files?
Yes, if you use a Microsoft account, answer your security questions correctly, have a password reset disk, or have another admin account on the same PC. Only a Windows reinstall erases your files. If none of those options work, reinstalling is your only path forward.
How long does it take to reset a Microsoft account password?
Usually a few minutes. Microsoft sends a code to your recovery email or phone almost when ready. Once you enter the code and create a new password, you can log into your PC right away.
What if I do not remember my security question answers?
If you cannot answer them at the login screen, try resetting your Microsoft account password from another device instead — Microsoft will send a code to your recovery email or phone. If you have no recovery email or phone, you will need a password reset disk or a Windows reinstall.
Can I reset someone else's password on my PC?
Only if you have an admin account on the same computer. Log in with your admin account, go to Settings > Accounts > Other people, find their account, and select "Reset password." You do not need their old password.
Is there a way to avoid reinstalling Windows?
Yes — set up recovery options now before you forget your password. Add a recovery email and phone number to your Microsoft account, write down your security question answers, and create a password reset disk. Any one of these will let you regain access without erasing your files.