The fastest way back in depends on what you remember

If you have forgotten your Windows password, your path back in depends on whether you remember your Microsoft account email, have a password reset disk from before you locked yourself out, or can answer your security questions. The method that works fastest is the one that matches what you still have access to. Most people can regain access within minutes using one of three routes: a password reset code sent to a recovery email, a physical reset disk if you made one earlier, or answering security questions you set up when you created your account.

The worst-case scenario — when you remember nothing and have no recovery method set up — requires either a local account password reset using another admin account on the same computer, or a full Windows reinstall. Both take longer and carry more risk of losing files, so the goal here is to show you which method matches your situation and how to execute it without guessing.

Key Takeaways

  • A Microsoft account password reset code arrives by email within minutes if you still have access to your recovery email address.
  • A password reset disk created before you forgot your password can unlock your account in under a minute, even if you have no internet access.
  • If you set up security questions when you created your account, you can answer them at the Windows login screen to reset your password without leaving your computer.
  • If you have another admin account on the same computer, you can reset a forgotten password from that account without reinstalling Windows.
  • A full Windows reinstall erases everything on your drive unless you back it up first, so it should be your last option.

Reset your password using your recovery email address

This method works if your account is a Microsoft account (not a local account) and you still have access to the email address you used to create it. At the Windows login screen, click I forgot my password below the password field. Windows will ask you to enter your email address, then send a code to that email within a few minutes.

Open the email on any device — phone, tablet, or another computer — and copy the code. Return to your locked computer, enter the code on the password reset screen, then create a new password. You will be logged in when ready. This method works even if you have no internet on your locked computer, as long as you can access your email somewhere else.

Use a password reset disk if you created one before

A password reset disk is a USB drive or floppy disk you created in advance, before you forgot your password. If you have one, it is the fastest way back in — usually under one minute. Insert the disk into your locked computer, click I forgot my password at the login screen, then follow the prompts to use the disk to create a new password.

The disk itself does not contain your password; it contains a key that lets Windows let you set a new one. If you created a reset disk years ago and still have it, it will still work. If you have never created one, you cannot create one now — you need access to your account first. Once you regain access using another method, you should create a reset disk when ready and store it somewhere safe.

Answer security questions to reset your password

If you set up security questions when you created your Microsoft account, you can use them to reset your password without leaving your computer or needing a recovery email. At the login screen, click I forgot my password, then select I don't have access to these options. Windows will ask you to answer the security questions you chose — usually three of them.

Answer them correctly and you can create a new password on the spot. This method requires that you remember the answers you gave, which is why many people skip setting up security questions. If you set them up but cannot remember your answers, this route will not work, and you will need to use a different method.

Reset a password from another admin account on the same computer

If you have a second admin account on the same computer and you remember its password, you can reset the forgotten password without any recovery email or disk. Log in to the admin account, then open Settings and go to Accounts > Other people. Find the account you locked yourself out of, click it, then select Reset password. You can set a new password for that account when ready.

This method only works if the account you are trying to reset is not the only admin account on the computer. If you are the only admin and you forgot that password, you cannot use this route. You will need to use a recovery email, security questions, or a reset disk instead.

Reinstall Windows as a last resort

If you have no recovery email access, no reset disk, no security questions, and no other admin account, a Windows reinstall is your remaining option. This erases everything on your drive — all files, programs, and settings — unless you back them up first. Because of this risk, it should only be your choice if you have already tried every other method.

To reinstall Windows, you need a USB drive with at least 8 GB of space and a working computer to create the installation media. Go to Microsoft's Windows read page, read the Media Creation Tool, and follow the steps to create a bootable USB. Insert the USB into your locked computer, restart it, and boot from the USB. Choose Repair your computer, then Reset this PC. You will be asked whether to keep your files or remove everything. Choose Remove everything only if you have backed up what you need. The process takes 20 to 40 minutes.

Prevent this from happening again

Once you regain access to your account, take two steps to avoid being locked out again. First, create a password reset disk and store it in a safe place — a drawer, a safe, or anywhere you will remember. Second, make sure your recovery email is current and that you have access to it. Check your account settings in Settings > Accounts > Your info > Manage your Microsoft account, then verify that the recovery email listed is one you check regularly.

If you use a password manager — a program like Bitwarden, 1Password, or KeePass that stores your passwords encrypted — write down the master password to that manager in a find location, separate from the manager itself. The goal is to have at least two ways back into your account that do not depend on remembering a single password.

Frequently Asked Questions

Can I reset my Windows password if I do not have a Microsoft account?

If you have a local account (one that does not use an email address), you cannot use the recovery email or security questions methods. You will need a password reset disk, another admin account, or a Windows reinstall. If you have never set up a reset disk and have no other admin account, reinstall is your only option.

What if I get the security questions wrong?

You usually get three attempts to answer security questions correctly. If you fail all three, you will be locked out of that method and will need to use a recovery email, reset disk, or another admin account instead. There is no way to try again after those three attempts without using a different recovery method.

Will I lose my files if I reinstall Windows?

Yes, unless you choose to keep your files during the reinstall. If you choose Remove everything, your entire drive is erased. If you choose Keep my files, your personal files are preserved but all programs are removed and you will need to reinstall them. Either way, back up anything important to an external drive or cloud storage before you start.

How long does a password reset code take to arrive?

Microsoft usually sends the code within a few minutes of you requesting it. Check your email inbox and your spam folder. If you do not see it after 10 minutes, request a new code. If you still do not receive it, your recovery email may be incorrect or you may not have access to it anymore, and you will need to use a different recovery method.

Can someone else reset my password if they have physical access to my computer?

Yes, if they have another admin account on the computer or a password reset disk. This is why storing your reset disk in a safe place matters — anyone with access to it can reset your password. If you are concerned about physical security, keep your reset disk locked up and consider using a BIOS password as well, which prevents someone from booting from a USB drive without a second password.