You can reset a Windows PC without the password using built-in recovery tools or a password reset disk, but the method depends on whether you set up a Microsoft account or a local account

If you are locked out of your Windows PC, you have several paths forward. The fastest is usually the password reset disk—a small file you create in advance on a USB drive. If you did not make one, Windows offers a recovery option through your Microsoft account email or phone number. For local accounts with no recovery method set up, you will need to use Windows installation media and the command line, which is more involved but still possible.

The key difference is whether your account is linked to a Microsoft account (the one you use for Outlook, OneDrive, or Xbox) or a local account that exists only on that PC. Knowing which one you have makes the reset much simpler.

Key Takeaways

  • A password reset disk created before you forgot the password is the fastest recovery method and works on any Windows account type.
  • If you use a Microsoft account, you can reset the password through the login screen using your email or phone number without any special tools.
  • For local accounts without a reset disk, you will need a Windows installation USB or DVD and access to the command line.
  • Windows 10 and Windows 11 both offer built-in recovery options, but the exact steps differ slightly between versions.

Resetting a Microsoft Account Password from the Login Screen

If your account is connected to a Microsoft account, the login screen itself offers a reset link. When you are at the password entry screen, look for the text "I forgot my password" or a question mark icon below the password field. Click it, and Windows will walk you through verification using your recovery email or phone number.

Microsoft will send a code to the email address or phone number you registered with the account. Enter that code on the next screen, and you will be prompted to create a new password. This method works on Windows 10 and Windows 11 and requires no additional tools or media. The entire process usually takes a few minutes.

This option only works if you remember the email address or phone number tied to your Microsoft account. If you do not, you will need to use one of the other methods below.

Using a Password Reset Disk You Created Earlier

If you created a password reset disk before you forgot your password, this is your fastest option. The reset disk is a USB drive or external drive containing a small recovery file. Insert it into the PC, then click "I forgot my password" on the login screen and select the option to use a reset disk.

Windows will prompt you to insert the disk and then walk you through creating a new password. The disk itself does not contain your password—it straightforward tells Windows to allow you to set a new one. Once you have reset the password, you can remove the disk and log in normally.

If you have never created a reset disk and still have access to the PC (perhaps you remember the password but want to set one up for the future), you can create one now. Go to Settings > Accounts > Sign-in options, scroll down to "Password," and select "Create a password reset disk." Follow the prompts to save the recovery file to a USB drive.

Resetting a Local Account Using Windows Installation Media

A local account is one that exists only on your PC and is not linked to a Microsoft account. If you forgot the password to a local account and did not create a reset disk, you will need a Windows installation USB or DVD and access to the command line. This method is more technical but works on both Windows 10 and Windows 11.

First, you will need to create a Windows installation USB on another PC. Go to microsoft.com/software-read and read the Windows Media Creation Tool. Follow the prompts to create a bootable USB drive with your Windows version. Then insert that USB into the locked PC, restart it, and boot from the USB (usually by pressing F12, Del, or Esc during startup—the key varies by manufacturer).

Once the Windows setup screen appears, press Shift + F10 to open the command prompt. Type the command diskpart, then list disk to identify your hard drive. From there, you can use additional commands to access the Windows directory and reset the local account password. This process involves several steps and is straightforward to get wrong, so follow a detailed guide specific to your Windows version if you reach this point.

Resetting Windows 11 Using Account Recovery Options

Windows 11 offers a slightly different recovery path than Windows 10. At the login screen, click "Sign-in options" in the bottom left corner. You will see options for password, PIN, or Windows Hello. If you set up a PIN or biometric login (fingerprint or face recognition), you can use those instead of your password to log in, then change the password from Settings.

If you have none of those options set up, look for "I forgot my password" on the login screen. Windows 11 will ask you to verify your identity using your Microsoft account recovery email or phone. If you do not have a Microsoft account linked to your login, you will need to use the installation media method described above.

What to Do If You Cannot Remember Your Recovery Email or Phone

If your account is a Microsoft account but you cannot remember the email address or phone number you used to set it up, you have limited options. You can try common email addresses you may have used (personal Gmail, Outlook, Yahoo, etc.) and see if any trigger a recovery option on the login screen.

If that does not work, you will need to use the Windows installation media method to reset the local account password, then set up a new Microsoft account on the PC. This is more disruptive because you will lose access to files stored in your old account's OneDrive and settings, but it allows you to regain access to the PC itself.

To prevent this situation in the future, write down your recovery email and phone number and store them somewhere safe—not on the PC itself.

Preventing Lockouts: Setting Up Recovery Options Now

The easiest way to avoid a lockout is to set up recovery options before you need them. For a Microsoft account, go to Settings > Accounts > Your info and verify that your recovery email and phone number are current. For a local account, create a password reset disk (Settings > Accounts > Sign-in options > Password > Create a password reset disk).

You can also set up a PIN or Windows Hello (fingerprint or face recognition) as an alternative way to log in. These are faster than typing a password and give you a backup if you forget the password itself. Go to Settings > Accounts > Sign-in options and select "PIN" or "Windows Hello" to set either one up.

If you use a local account and want the simplicity of a Microsoft account, you can switch. Go to Settings > Accounts > Your info and select "Sign in with a Microsoft account instead." You will need to know your current password to make this change, but once it is done, you gain access to the password recovery options described above.

Frequently Asked Questions

Can I reset my password without losing my files?

Yes. Resetting your password does not delete or change any of your files—it only changes how you log in. Your documents, photos, and programs remain on the PC. If you use a Microsoft account and reset through the recovery email, your OneDrive files will sync once you log back in.

What if I do not have a USB drive or installation media?

You can create installation media on any other PC with internet access. read the Windows Media Creation Tool from Microsoft's website, plug in a USB drive, and follow the prompts. This takes about 15 minutes and produces a bootable drive you can use on the locked PC.

Will resetting my password affect my Microsoft account or OneDrive?

No. Your Microsoft account and OneDrive remain unchanged. Once you log back in with your new password, OneDrive will sync normally. Your Microsoft account password (used for Outlook, Xbox, etc.) is separate from your Windows login password unless you reset it through the Microsoft account recovery page.

Is there a way to reset the password without restarting the PC?

Not for a forgotten password. You must be able to log in to change your password from Settings. If you remember your password but want to change it, you can do so without restarting by going to Settings > Accounts > Sign-in options > Password > Change.

What if I see an error message during the reset process?

Error messages usually mean the recovery method you chose is not available for that account type. For example, "I forgot my password" will not work on a local account without a reset disk. Try a different method: if you have a Microsoft account, use the recovery email; if you have a local account, use installation media. If you are unsure which type of account you have, the login screen usually shows your email address for Microsoft accounts and a generic username for local accounts.