Locked out of your own PC? Don't panic — and don't reset Windows yet. In many cases, you can get back in without losing any files.
This guide is for recovering access to your own computer. Start with the first step and move down the list until you're back in.
- Make sure Caps Lock is off and Num Lock is on if your password has numbers
- Check the keyboard layout in the bottom-right corner of the sign-in screen
- Look at your password hint, if one is shown
- Click Sign-in options and try your PIN, fingerprint or face sign-in if you set one up
- Type your password slowly in the visible box (click the eye icon) to catch typing mistakes
If you sign in with an email address (Outlook, Hotmail, Gmail, etc. linked to Microsoft), you can reset the password online from another device.
- On your phone or another computer, open Microsoft's official account password reset page
- Enter your email address and verify your identity with a code sent to your phone or backup email
- Choose a new password
- Back on the locked PC, connect to the internet and sign in with the new password
If you use a local account (no email) and you set up security questions, you may see a Reset password link under the password box after a wrong attempt.
- Click Reset password
- Answer your security questions
- Create a new password and sign in
If another account on the PC has administrator rights, sign in with it and reset your password:
- Right-click the Start button and choose Computer Management (Windows Pro) and go to Local Users and Groups → Users
- Right-click your account, choose Set Password and enter a new one
- On Windows Home, open an administrator Command Prompt and type net user USERNAME NEWPASSWORD (replace with your account name and a new password)
If you created a password reset USB earlier, plug it in, click Reset password on the sign-in screen and follow the wizard. If you haven't made one yet, it's worth doing once you're back in (search for Create a password reset disk).
If none of the above work, the only remaining safe option is to reset Windows. This erases your files and apps, so use it only if you have no other choice.
- On the sign-in screen, hold Shift and click Power → Restart
- Choose Troubleshoot → Reset this PC
- Follow the options to reset Windows, then set up a fresh account
- Link your PC to a Microsoft account so you can reset the password online
- Set up a PIN and fingerprint or face sign-in as backups
- Use a password manager and keep a recovery note somewhere safe (not on the PC itself)
- Create a password reset disk for a local account
- Back up important files regularly
Stay safe while recovering access
- Only reset passwords on your own PC. Accessing someone else's computer or account without permission is illegal
- Never download "Windows password cracker" tools from random websites — many contain malware
- Beware of scam "support" pages that ask for your Microsoft password or payment to unlock your PC. Microsoft will never charge you to reset a password
- Use only Microsoft's official account recovery pages for account resets
Final Thoughts
Forgetting a Windows password is stressful, but in most cases you can get back in without losing a single file. Start with the simple checks, try your Microsoft account reset, and use the PC reset only as a final option.
From my experience as a technician, the biggest difference between a quick fix and losing data is whether the account was linked to a Microsoft account. Set that up and keep a backup — it takes five minutes and saves a lot of trouble.