The fastest way depends on what you remember and what device you're using
If you've forgotten your Windows password, the path forward depends on whether you're using a personal Microsoft account or a local account created just on that computer. A Microsoft account password can be reset online from any device. A local account password has no online reset option — you'll need to use a security question, a PIN, or a recovery key if you set one up beforehand. If you have none of those, you'll need to use a bootable recovery tool or reinstall Windows.
The single most important thing to do right now is stop trying random passwords. After a certain number of wrong attempts, Windows locks you out temporarily, and each failed try makes the lockout longer.
Key Takeaways
- Microsoft account passwords reset online at account.microsoft.com from any other device, and Windows syncs the new password within minutes.
- Local account passwords have no online reset — you must use a security question, PIN, or recovery key you created before you forgot the password.
- If you have none of those, you can use a Windows installation USB or DVD to access recovery tools without knowing the password.
- The recovery key is the single most useful thing to set up now if you regain access, because it works even if you forget both your password and your security questions.
Resetting a Microsoft account password from another device
If your Windows account is linked to a Microsoft email address (you see your email on the login screen), you can reset the password online without touching the locked computer. Go to account.microsoft.com from any phone, tablet, or computer with internet access. Click "Sign in" and then "Can't access your account?" at the bottom.
Microsoft will ask you to verify your identity. You can do this by entering a recovery email address, a phone number you registered with the account, or an authenticator app if you set one up. Once you verify, you'll be able to create a new password. Windows will sync this new password to your locked computer within a few minutes — usually by the time you walk back to it.
This is the simplest path if it's available to you. The new password works when ready on the locked computer.
Using a security question to unlock a local account
If your account shows only a username (not an email address) on the login screen, it's a local account. At the login screen, click "Reset password" below the password field. Windows will show you the security questions you answered when you created the account.
Answer the questions correctly and Windows will let you create a new password right there. You don't need the old password — answering the questions proves you own the account. If you don't remember the answers you gave, or if there's no "Reset password" button, move to the next section.
Using a PIN or recovery key if you have one
If you set up a PIN (a short number you use instead of a password), you can use that PIN to log in instead. A PIN is often easier to remember than a long password. If the PIN works, you're in — you can then change your password from Settings.
If you created a recovery key before you forgot your password, you can use it at the login screen. Look for a link that says "I forgot my PIN" or "I forgot my password" and select the option to use a recovery key. Enter the key (it's a long string of characters, usually saved in a file or email) and Windows will let you in. Once you're logged in, create a new password when ready and save the recovery key somewhere safe.
Creating a password reset disk or using Windows installation media
If you have a USB drive or DVD with Windows installation files on it, you can boot from that media and access recovery tools. Insert the USB or DVD, restart the computer, and press the key that appears on screen to boot from the media (usually F12, Esc, or Del — the exact key appears briefly during startup). Choose "Repair your computer" and then look for "Troubleshoot" or "Advanced options."
From there, you can access the command prompt and use tools to reset the password or create a new local account. This requires some comfort with typing commands, and the exact steps vary depending on your Windows version. If you're not sure which commands to use, this is a good time to contact someone with technical experience or take the computer to a repair shop.
If you don't have installation media, you can create one on another computer by downloading the Windows installation tool from Microsoft's website and following their instructions to put it on a USB drive.
Reinstalling Windows as a last resort
If you have no recovery key, no security questions you remember, no PIN, and no installation media, your last option is to reinstall Windows. This erases everything on the computer and starts fresh, so use this only when nothing else works.
You'll need another computer to read Windows and create installation media on a USB drive. Once you have that, boot from the USB on the locked computer and choose "Install now." During installation, you'll create a new account with a new password. After Windows finishes installing, your old files will be gone, but you'll have a working computer again.
Setting up recovery options now to avoid this later
Once you regain access to your computer, spend 10 minutes setting up recovery options so you never face this again. In Windows Settings, search for "Recovery options" and look for the section on password reset. Create a recovery key and save it in a safe place — not on the computer itself, but in a file on your phone, in email, or printed on paper in a drawer.
If you use a Microsoft account, make sure your recovery email and phone number are current. If you use a local account, set up security questions and consider creating a PIN as well. A PIN is often easier to remember than a complex password, and you can use it to log in even if you forget the password.
Frequently Asked Questions
Can I use my phone or email to reset my password if I don't remember which type of account I have?
Go to account.microsoft.com and try to sign in with your email address. If it works, your Windows account is linked to that Microsoft account and you can reset the password there. If it doesn't work, your account is local and you'll need to use a security question, PIN, or recovery key instead.
What if I remember part of my password but not all of it?
Windows doesn't have a "hint" system that shows you part of your password. You'll need to use one of the recovery methods above. Don't guess — repeated wrong attempts lock you out temporarily and make the lockout longer each time.
Is there a way to see my password if I'm already logged in?
No, Windows doesn't display passwords for security reasons. If you're logged in and want to change your password to something you'll remember better, go to Settings, search for "Password," and choose "Change your password." You'll need to enter your current password first.
Can a repair shop recover my password without reinstalling Windows?
A repair shop can use specialized tools and recovery media to reset your password or create a new account without erasing your files. This is faster and safer than reinstalling Windows yourself if you're not comfortable with the process.
What's the difference between a PIN and a password?
A PIN is a short number (like 1234) that's easier to remember, while a password is usually longer and can include letters and symbols. Both work to log in. A PIN is stored locally on your computer, so it works even if you're offline or if your internet is down.