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

If you can log in as a standard user (not the administrator account), you can reset the admin password through Settings without any special tools or recovery discs. If you cannot log in at all, you will need either a password reset disc you made earlier, a Microsoft account recovery email, or physical access to reinstall Windows. The method that works for you depends on what you set up before you locked yourself out.

On Windows 10 and 11, the most common working path is through a Microsoft account linked to the admin account — Microsoft can send a reset code to your email or phone number. On older Windows versions or local accounts with no recovery email, you may need to use a password reset disc if you created one, or reset Windows entirely.

Key Takeaways

  • If you can log in as any user, open Settings and use "Reset your password" under Accounts to change the admin password without losing files.
  • If the admin account is linked to a Microsoft account, go to account.microsoft.com on another device and use "Forgot my password" to reset it there, then sign in on your computer.
  • A password reset disc created before you forgot the password is the fastest offline method — insert it, click "Reset password" on the login screen, and follow the wizard.
  • If none of those work, you can reset Windows 10 or 11 while keeping your files, though you will lose installed programs and settings.
  • Local accounts with no recovery email and no reset disc have no built-in recovery path — you will need to reinstall Windows or contact a local technician.

Resetting the password if you can log in as a standard user

Open Settings (press Windows key + I). Go to Accounts on the left, then Other users. Find the administrator account in the list, click it, then click Change password. You will be asked for the current password; if you do not know it, click I forgot my password instead. Windows will walk you through recovery options tied to that account.

This method keeps all your files, programs, and settings intact. It only changes the password for that one account. If the administrator account is linked to a Microsoft account, you may be prompted to verify your identity through email or phone before the change takes effect.

Using a Microsoft account recovery email or phone number

If the administrator account is connected to a Microsoft account, you can reset the password from any other device without touching the locked computer. Go to account.microsoft.com in a web browser, click Sign in, then click Can't access your account? Enter the email address or phone number associated with the account.

Microsoft will send a code to your recovery email or phone. Enter that code, create a new password, and save it. Then go back to your locked computer, click Sign-in options on the login screen, select Password, and sign in with your new password. This works even if you never created a password reset disc.

This method only works if you still have access to the recovery email or phone number you set up with Microsoft. If you no longer have access to either, you will need to use a password reset disc or reset Windows.

Using a password reset disc you created earlier

If you created a password reset disc before you forgot the password, insert it into the computer. On the Windows login screen, click the administrator account, then click Reset password. A wizard will open and ask you to select the reset disc. Follow the prompts to create a new password.

Password reset discs work on Windows 7, 8, 10, and 11. They are one of the most reliable offline methods because they do not depend on internet access or recovery emails. If you have never created one, you cannot use this method now — you would need to create one while logged in as the administrator, which you cannot do if you are locked out.

Resetting Windows while keeping your files

On Windows 10 and 11, you can reset the operating system while keeping your personal files. On the login screen, hold Shift and click the power button in the bottom right, then click Restart. The computer will boot into recovery mode. Click Troubleshoot, then Reset this PC, then Keep my files.

Windows will reinstall itself, which takes 20 to 45 minutes depending on your computer speed. You will lose all installed programs and settings, but documents, photos, and other personal files stay on the computer. After the reset completes, you will create a new administrator account during setup. You can then reinstall your programs and restore settings manually.

This method erases the password entirely because it erases the account. It is a last resort when you have no recovery email, no reset disc, and cannot log in as any other user. It is faster than replacing the hard drive or taking the computer to a technician, but slower than using a reset disc or Microsoft account recovery.

What to do if you have a local account with no recovery options

A local account is one that exists only on your computer, not linked to Microsoft or any online service. If you created the administrator account as a local account and never set up a recovery email or password reset disc, there is no built-in way to recover the password. Windows has no back door, and no legitimate tool can bypass this.

Your options at this point are to reset Windows (which erases the account and your programs), take the computer to a local repair shop, or reinstall Windows from scratch using installation media. A technician can sometimes recover files before reinstalling, which is worth the cost if the computer holds important documents you cannot replace.

Creating a password reset disc for the future

Once you regain access to the administrator account, create a password reset disc when ready so you never face this problem again. Insert a blank USB drive or DVD. Open Control Panel, search for Create a password reset disc, and follow the wizard. Select the administrator account, choose your USB drive or DVD, and let it finish.

Store the disc or drive somewhere safe but accessible — a desk drawer, not a safe deposit box. Label it clearly with the account name and date. If you ever forget the password again, you can use this disc to reset it in under five minutes without losing any files or programs.

Frequently Asked Questions

Can I reset the admin password if I do not know any other password on the computer?

Only if you have a password reset disc, a linked Microsoft account with recovery email access, or you are willing to reset Windows entirely. If you have none of those, you will need to contact a technician or reinstall Windows from installation media.

Will resetting the password delete my files?

No, if you use Settings, a password reset disc, or Microsoft account recovery. Your files stay on the computer. Only a full Windows reset erases programs and settings while keeping files — and even then, your personal documents remain.

What if I reset the password but still cannot log in?

Wait a few minutes for the change to sync if you used a Microsoft account. If you used a local account or reset disc, the password should work when ready. If it still does not, try typing it very carefully — check Caps Lock and make sure you are using the exact password you just set.

Can I use someone else's computer to reset my password?

Yes, if your admin account is linked to a Microsoft account. Go to account.microsoft.com on any device with internet, use "Forgot my password", and reset it there. Then sign in on your locked computer with the new password.

Is there a master password or back door for Windows?

No. Microsoft does not provide a master password, and no legitimate tool can bypass Windows security. Anyone claiming to have a universal password reset tool is selling malware or a scam. Your only real options are the ones listed above.