The fastest way depends on whether you remember any password at all

If you can still log in to Windows but want to change your password, use the built-in password reset tool: press Ctrl+Alt+Delete, select "Change a password", and follow the prompts. If you are locked out entirely, your options narrow. Windows offers a password reset disk (created before you forget the password) and account recovery through a Microsoft account. If neither exists, you will need to use a local administrator account, a recovery key, or reinstall Windows — each with different requirements and time costs.

The method that works for you depends on what you set up beforehand and whether you have access to another computer or phone.

Key Takeaways

  • A password reset disk created before you forgot your password is the fastest way back in — you insert it and reset without losing files.
  • If you use a Microsoft account, you can reset your password from another device by visiting account.microsoft.com and following the recovery steps.
  • A local administrator account on the same computer lets you reset another user's password without reinstalling Windows.
  • If none of these exist, you will need to reinstall Windows, which erases the drive unless you use a recovery partition.

Using a password reset disk you created earlier

A password reset disk is a USB drive or floppy disk you create while you can still log in. It stores an encrypted key that lets you reset your password without losing any files. To create one before you forget your password, log in normally, open Control Panel, search for "Create a password reset disk", and follow the wizard. Insert the USB drive and let it write the key file.

When you are locked out, insert the disk at the login screen, click "Reset password", and the wizard will walk you through creating a new password. You keep all your files and programs. This is the least disruptive method if you prepared it in advance.

Resetting through a Microsoft account from another device

If you use a Microsoft account (not a local account) to log into Windows, you can reset your password from any other computer or phone. Go to account.microsoft.com, click "Security" in the left menu, then "Password security". Click "Change password" and follow the prompts. Microsoft will ask you to verify your identity — usually by sending a code to a backup email or phone number you registered.

Once you reset the password online, wait a few minutes, then try logging into your locked Windows computer with the new password. This works only if you set up a recovery email or phone number before you forgot the password. If you did not, Microsoft offers other verification methods, but they take longer and may require you to prove you own the account through additional steps.

Using another administrator account on the same computer

If someone else set up an administrator account on your computer, or if you created one and remember its password, you can use it to reset your own account's password. Log in with the administrator account, open Control Panel, go to "User Accounts", select your locked account, and click "Reset password". You will not need the old password — just create a new one.

This method works only if a second administrator account exists and is accessible. It does not require internet, a recovery disk, or reinstalling Windows. If you are the only person who uses the computer and no second account exists, this route is closed to you.

Reinstalling Windows as a last resort

If you have no password reset disk, no recovery email or phone set up, and no second administrator account, reinstalling Windows is the remaining option. You will need a blank USB drive (8 GB or larger) and access to another computer to create installation media using the Windows Media Creation Tool (available free from Microsoft's website).

Reinstalling Windows erases everything on your drive unless you have a recovery partition set up beforehand. Before you start, back up any files you can access from another computer or external drive. Insert the installation USB into your locked computer, restart it, and boot from the USB (usually by pressing F12, F2, or Del during startup — the key varies by manufacturer). Follow the Windows installer, choose your drive, and select "Custom install". This wipes the drive and installs a fresh copy of Windows. You will need to reinstall your programs and restore your files afterward.

What to do if you cannot access any recovery method

If you have no password reset disk, no recovery email or phone, no second administrator account, and no way to create installation media, you have reached a hard stop. At this point, contact the computer manufacturer's support line — they may be able to verify ownership and provide a recovery key or walk you through a manufacturer-specific reset process. Some manufacturers (Dell, HP, Lenovo) have their own password recovery tools, though they typically require proof of purchase.

This situation is preventable: set up a recovery email and phone number in your Microsoft account settings now, or create a password reset disk and store it somewhere safe. Both take five minutes and save you hours later.

Preventing this from happening again

The easiest password to reset is one you never forget. Use a password manager like Bitwarden, 1Password, or KeePass to store your Windows password securely — you only have to remember one master password. Password managers sync across devices and let you generate strong passwords you could not memorize anyway.

If you prefer not to use a password manager, write your password down and store the paper in a locked drawer or safe — not in a file on your computer. Set up Windows Hello (facial recognition or fingerprint) as a backup login method so you have a second way in if you forget the password. Most importantly, create a password reset disk now and store it with important documents. It takes five minutes and makes you nearly impossible to lock out.

Frequently Asked Questions

Can I reset my Windows password without losing my files?

Yes, if you use a password reset disk or reset through a Microsoft account. Both methods change only your password and leave all files and programs untouched. Reinstalling Windows erases everything unless you have a recovery partition, so it should be your last option.

What if I forgot my Microsoft account password too?

Go to account.microsoft.com and click "Can't access your account". Microsoft will walk you through recovery using a backup email, phone number, or security questions. This process can take several hours or days depending on how much information you can verify. Have a backup email or phone number set up now to avoid this.

Does a password reset disk work on any computer?

No. A password reset disk works only on the specific Windows account and computer where it was created. If you use multiple computers, you need a separate reset disk for each one, or use a Microsoft account that syncs across all your devices.

How long does it take to reinstall Windows?

The installation itself takes 15 to 30 minutes depending on your computer's speed. Reinstalling your programs and restoring files from backup can take several hours. If you have a fast internet connection and most of your programs are cloud-based (like Office 365 or Google Workspace), recovery is faster.

Is there a way to bypass Windows password security?

Not without losing data or reinstalling. Windows password security is designed to be difficult to bypass — that is the point. If someone could easily reset your password without your permission, your files would not be safe. The methods described here all require either something you created beforehand or proof that you own the account.