Locking yourself out of your own computer is stressful, but you usually don’t need to wipe it or lose anything. The right way back in depends on how you sign in, so start by working out which kind of account you have.
Which account do you have? On the sign-in screen, if it shows your email address under your name, it’s a Microsoft account. If it shows just a name, with no email, it’s a local account.
A work or school computer? If the PC belongs to your employer or school, only their IT team can reset the password, for security. Contact your IT support rather than trying the steps below.
Microsoft account: reset it online
This is the most common type now, and the easiest to fix. You don’t even need the locked computer.
- On your phone or another computer, go to account.live.com/password/reset.
- Enter the email address you use to sign in to Windows.
- Choose how to get your security code, by email or text, and enter the code.
- Set a new password.
- Back on the locked PC, sign in with the new password. If it’s connected to the internet, it works straight away.
Nothing on your PC is touched. All your files, apps, and settings are exactly as you left them.
Local account: the built-in options
If you sign in with a local account, try these first, as they’re the simplest and don’t need any extra software.
Answer your security questions (Windows 10 and 11)
If you set up security questions when you made the account, enter the wrong password once, then click Reset password under the box. Answer your questions, and you can set a new one.
Use a password reset disk
If you made a password reset USB stick before you got locked out, plug it in, click Reset password on the sign-in screen, and follow the wizard. (It’s worth making one now, for next time: search the Start menu for Create a password reset disk.)
Sign in with another admin account
If someone else has an administrator account on the same PC, they can sign in and reset yours: go to Settings > Accounts > Other users (or Family & other users), select your account, and change the password.
If none of those work
If it’s a local account with no reset disk, no security questions, and no other admin, resetting it is more involved and beyond a few quick steps. At that point I’d suggest one of these:
- If the computer is yours, a repair shop or an IT engineer (like me) can reset a local-account password for you, usually while you wait.
- Microsoft’s own advice, if nothing above works, is to reset the PC. In Settings this keeps your files, but a reset from the sign-in screen does not, so back up your drive first if you possibly can.
Whatever route you take, get your important files backed up afterwards, so a lockout is never a worry again.
Questions
Will I lose my files if I reset my password?
No, not if you reset the password itself, using any method above. You only risk your files if you reset or reinstall Windows, which is a last resort.
I don’t know if I have a Microsoft or local account
Look at the sign-in screen. An email address under your name means a Microsoft account, which you reset online. Just a name means a local account.
How do I avoid this next time?
Make a password reset disk for a local account, or make sure you know your Microsoft account’s recovery email and phone number. It’s also worth writing your password down somewhere safe at home.
Related guides
Stuck with your computer? Through my IT support business, TNNY IT, I can often help remotely the same day, or at home if you’re near Melton Mowbray.