The solution depends on what kind of account you have. Microsoft account is easy. Local account is harder. Here's how to tell which and what to do.
Microsoft account? Reset online.
On your phone or another computer, go to account.microsoft.com/password. Sign in, reset your password. Then sign in on the locked PC with the new password.
First: figure out which account you have
Look at the Windows sign-in screen:
- Email address shown (like name@outlook.com) = Microsoft account, you can reset online
- Just a username = Local account, harder, see below
Reset a Microsoft account password
- Use another device (phone, tablet, another computer)
- Go to account.microsoft.com/password
- Click "Forgot password?"
- Enter your email or phone number
- Microsoft sends a verification code to your backup email or phone
- Enter the code, create a new password
- On your locked PC, click "I forgot my password" on sign-in screen (or just try the new password)
- Sign in with the new password. May need to be online (ethernet or Wi-Fi).
If you can't get verification codes
If you've lost access to your backup email/phone:
- Go to account.live.com/acsr
- Fill out the Microsoft account recovery form
- Microsoft reviews it (24-48 hours)
- If you pass, they restore access
Reset a local account password (Windows 10/11)
Local accounts can't be reset online. Microsoft expects you to have set up security questions or a password reset disk.
If you set up security questions (Windows 10 v1803+):
- On the sign-in screen, type a wrong password
- Click "Reset password" link that appears
- Answer your security questions
- Create a new password
If you set up a password reset disk:
- Plug in the USB stick
- Type a wrong password, click Reset password
- Follow the wizard
If you have no security questions or reset disk
Microsoft doesn't offer an official way. Your options:
- Reset Windows (keeps your files, removes apps): Hold Shift, click Restart on sign-in screen, Troubleshoot > Reset this PC > Keep my files. Loses installed apps but keeps documents.
- Reinstall Windows (loses everything): Boot from a Windows USB installer, do a clean install. Files go to Windows.old folder.
- Use a third-party tool (advanced): Boot from a Linux USB to access files directly. Not for beginners.
After you get back in
Set up these so you don't get stuck again:
- Switch to a Microsoft account (Settings > Accounts > Sign in with a Microsoft account)
- Add a PIN (Settings > Accounts > Sign-in options)
- Add Windows Hello (face or fingerprint)
- Make sure account.microsoft.com has current backup email/phone
- Set up security questions if using local account
Didn't work? Tell me what you tried
Thanks. This helps me make these directions better.
Still stuck?
Text me and tell me what's going on. If it's a software issue I can fix, I'll come out, and if I can't fix it, you don't pay.
More computers help
- Mac Won't Turn On? Step-by-Step Fixes for MacBook and iMac
- Mac Running Slow? 8 Real Fixes That Work
- Blue Screen of Death: What It Means and How to Fix It
- Reset Your Mac Password (Forgot Mac Login)
Did this help you? These are free, and if you'd like to say thanks, feel free to buy me a coffee.