How to recover access to a Windows account if you have forgotten your password

  • Identifying whether your user account is a Microsoft or local account is key to choosing the correct recovery method.
  • Microsoft's official tools and Windows reset options allow you to regain access without formatting in most cases.
  • There are advanced methods using external programs or command consoles that require more caution but prevent data loss.
  • A complete PC reset, erasing everything, should be reserved as a last resort when no other solution is possible.

How to recover your Windows password

Forgetting your Windows login password can turn into quite a scare: suddenly, You can't log into your own computerYou have unfinished work, photos, games, documents… and it seems like everything is lost. The good news is that, in most cases, It is possible to recover the password without formatting. And without deleting your files, as long as you follow the appropriate method depending on the type of account you use.

To truly help you, it's important that you know whether you're logging in with a Microsoft account linked to an email or with local account that only exists on that computerFrom there, Windows offers different recovery systems (security questions, recovery disks, official online tools) and, if none of that works, there are also more advanced and drastic alternatives that you should know about before making the decision to erase everything.

Is your user account a Microsoft account or a local account?

Before touching anything, the first thing is to know What type of account do you use to log into Windows?because the available recovery method depends on it. The steps to reset a password for a cloud account are not the same as for an account that is only stored on your own PC.

In practice, a Your Microsoft account is based on an email address (Outlook, Hotmail, Live, even Gmail or other external email services) and syncs with services like OneDrive, the Microsoft Store, or Xbox. The local account, on the other hand, is a user created only on that computer, which is not necessarily linked to any email and whose password resides only on the computer.

To check this from the login screen, look carefully at the information the system asks for: if you see an email address as an identifierYou're using a Microsoft account; if only a username or plain email alias appears, you're probably a local user. This detail makes all the difference when choosing the fastest and safest way to log back in.

house&party functions
Related article:
How to recover HouseParty username and password

Reset your password from the Windows login screen

In many Windows 10 and Windows 11 installations, the login screen itself offers a Direct access to reset forgotten passwordwithout needing to log in beforehand. This mechanism changes slightly depending on the version, but the underlying idea is the same.

When you enter the wrong password, Windows usually displays an additional button or option next to the password box, typically related to the function of credentials resetBy selecting this button, you will see links such as "I forgot my password" or similar options that start the recovery wizard.

After pressing that option, the system may ask you to confirm that you want to reset your password Then, you'll be redirected to the appropriate method depending on your account type: security questions for local accounts or verification through your linked Microsoft account. It all includes a button. Next or Accept to move forward with the process.

For modern local users, several options could be defined when the account was set up. security questions for forgetfulness situationsFrom that wizard, after indicating that you don't remember your password, Windows will show you those questions for you to answer correctly and, once you pass that step, it will allow you to enter a new password for that local user without losing the rest of the team's data.

How to recover a Microsoft account password

If you log into your computer with your email, there's a good chance you're using a Microsoft account with online recoverywhich is usually the easiest and fastest way to regain access, even if the PC is locked and won't let you do anything else.

To begin with, it is highly recommended that you rely on another device with an internet connection (your mobile phone, a tablet, a friend's laptop, etc.). From that second device, open the browser and access the official Microsoft account recovery page, which is the tool that centralizes the password change for all its services.

Once there, insert the email address associated with your Microsoft account (the same one you use to log in to Windows) and complete the typical security check that appears on the screen to prove you are a real person and not an automated program. Once you have done that, click the corresponding button to continue the process.

The system will offer you different identity verification methodsThese methods typically include sending a code to your mobile phone, an alternate recovery email address, or using an authenticator app. The most common approach is to use the email address or mobile number you previously registered as your security method.

Select the verification option that best suits you and enter, if necessary, the hidden part of the email or phone number (For example, fill in the fields marked with asterisks) to confirm you are the owner. Click the button to have Microsoft send the security code to your chosen method.

In a matter of seconds you should receive a message with a numeric verification codeOpen it from your mobile device or the alternative device you're using, and copy that code into the corresponding field on the Microsoft recovery page. Once successfully validated, the platform will confirm that you are indeed the account holder.

Once the verification is complete, you will see the option to define a completely new password for your Microsoft account. It's important that it's not a password you've used before with that same account, and that it's secure and easy to remember (combining letters, numbers, and symbols of a reasonable length). Once you confirm it, the change will be saved for all associated services.

Now that you have the updated password, return to your locked computer and make sure that the team has internet access (via cable or Wi-Fi) and enter the new password on the Windows login screen. If everything went well, you should be able to log in and use the system normally, including changing your PIN, removing your password, or adjusting other security settings.

How to recover your Windows password

Recovering the password in local accounts on Windows 10 and Windows 11

When you work with a local account, the password is stored exclusively on your PC, without being synchronized with the cloud, so Microsoft cannot reset it remotelyThis complicates things a bit, but there are still several options before considering formatting or deleting the installation.

Reset a local account with security questions

In many recent Windows 10 installations (especially since version 1803) and in Windows 11, creating a local account offers the option to assign security questions for cases of forgettingIf you did it back then, you're in a pretty good position.

On the login screen, after entering an incorrect password, Windows usually displays a link that allows reset local user passwordClick on that link and the system will load the wizard responsible for the security questions associated with that account.

Next, the different ones will appear. questions you saved when setting up your account (For example, what was the name of your first pet or what city you were born in). If you remember the answers correctly, you'll just have to write them one by one, making sure to include accents and capital letters if you used them when creating them.

Once all security questions have been answered successfully, Windows will allow you to enter a new password for your local userEnter it, confirm it in the second field, and complete the operation. From that moment on, you can log in with that new password and continue working with your files and programs as before.

Using a password reset disk or drive

Windows has included an option to create a password reset disk on a USB drivewhich serves as a backup in cases of forgetting your password. The drawback is obvious: it's essential to have prepared this file when you still remembered your password and could log in normally.

If you were prepared and have one of these discs, all you need to do is Connect it to the computer on the login screen When the system asks for the password, after entering an incorrect password, a link to use the recovery disk should appear; selecting it will start the corresponding wizard.

This assistant will guide you step by step to create a new password Using the information stored on that USB drive, you won't need to know your old password. Once the process is complete, you can log in with your new password and continue using your account as normal, keeping all your apps and data.

Restarting your PC while keeping files is the standard last resort

If you don't have security questions, didn't create a recovery disk, and aren't using a Microsoft account, you still have one official option before resorting to more aggressive measures: Reset Windows while keeping your personal filesHowever, you will lose programs and settings.

From the login screen, click on the power off icon in the bottom right cornerPress and hold the Shift key on your keyboard, then select Restart. This will restart your computer and open the advanced recovery options environment.

When the blue options screen appears, navigate through the menus to select Troubleshoot and then Reset this computerAt this point, Windows will offer you two options: delete everything or keep your personal files, the latter being the more prudent choice if you don't want to lose documents, photos, and other data.

where are the passwords saved in the browser
Related article:
How to view stored passwords in your web browser

Choosing the option of Keep my filesA Windows reinstallation process will begin, which will delete applications and settings but preserve user folders. Follow the on-screen instructions, wait for the reinstallation to complete, and then you will be able to create a new user account with new password to start from scratch at the system level, but with your personal data still on the disk.

Reset your Windows 10 password without logging in (using a Microsoft account)

In Windows 10, when the account blocking access is associated with Microsoft, you can rely on the Built-in "Forgot my password" assistant, which is activated directly from the login screen, without needing to access the desktop.

First, on the Windows 10 Start screen, click on Login Options To see if you have other methods configured, such as a PIN or fingerprint. If you don't remember your PIN either and only have your password, enter something incorrect and locate the link that indicates you've forgotten it to begin the recovery process.

Clicking the "Forgot your password" link will open a wizard that will ask you confirm the affected Microsoft accountYou will need to enter the email address you use in Windows 10 and complete the captcha verification code that appears on the screen. Then, proceed to the next step.

The tool will force you to go through a second identity checkYou can choose between validating with a code sent to an alternate email address, using a login app, or receiving a message on your mobile phone. Usually, the easiest way is to have the code sent to the secondary email address you have configured in your security profile.

With this option selected, enter the part of the secondary email that Microsoft asks you to complete (for example, the missing characters before the @ symbol) and tap Send code. Then, open your alternate email account from another device, locate the message from Microsoft, and copy the enclosed security code.

Return to the Windows 10 assistant screen and Enter the received code in the corresponding field.If correct, the system will show you the form to create a new password for your Microsoft account, which you will use from now on on your PC and in all linked services.

Write a new password that does not match any previous password for that same account, confirm that it meets the minimum security requirements and save it in a password manager or in a safe place so you don't forget it again. Once the change is accepted, you can return to the login screen and enter the new password to log in normally.

Advanced methods for resetting Windows passwords

If all standard options fail, there are more advanced methods to regain control of a locked computerThese procedures are especially useful for administrators or users with technical knowledge. They can be effective, but they carry risks and, in some cases, involve the use of third-party tools.

Reset the password using an external program (PCUnlocker)

One possibility is to use utilities like PCUnlocker, which allow Replace or leave blank the password for local accounts from an external bootable device. They usually offer trial versions, but it's always best to download them from reliable sources and use them responsibly.

First you will need a second working computer with Internet accessFrom there, you'll download an ISO image of the program (for example, pcunlocker.iso). Then you'll need to burn that ISO to a bootable CD, DVD, or USB drive using a media creation tool.

Once you have the media prepared, return to the locked PC and turn it on by accessing the BIOS or UEFI configurationTo do this, you usually have to repeatedly press a specific key during startup (F2, Delete, F8 or another depending on the manufacturer) until the system configuration menu appears.

Within the BIOS or UEFI, use the arrow keys or the mouse to navigate to the section of Bootwhere you can change the boot device priority. Place the CD/DVD drive or USB drive first, depending on where you burned the PCUnlocker ISO, and save the changes (usually done with F10 or by selecting the Save & Exit option).

With the boot priority set and the device connected, the computer will boot from that medium, loading the PCUnlocker program interface Instead of logging into Windows. From there, you'll need to choose the mode designed to reset local passwords, such as the "Reset Local Admin/User Password" option offered by many of these tools.

The program will ask you to specify the location of the Windows SAM file, where password hashes are stored, usually located in C:\Windows\System32\config. Once detected, the utility will display a list of all active user accounts on the computer, including administrators and standard users.

Select the account for which you have forgotten the password and use the button. Reset or clear passwordIn many cases, the tool simply leaves the password field blank, allowing you to log in without entering anything. You can then set a new password directly from Windows using the Control Panel or Settings.

Resetting passwords using the command prompt in Windows 7

Another advanced technique involves Take advantage of the Windows Recovery Environment In older versions like Windows 7, this method allows you to modify system files and gain access to the command prompt from the Start screen. It's a laborious and somewhat risky method, so it should be done with extreme caution.

The first step is to force the appearance of Windows Startup RecoveryTo do this, you can cause three failed boot attempts by abruptly shutting down the computer (using the physical button or removing the power cord on desktops, or removing the battery/power cord on laptops) just as it tries to start up, until it displays the repair screen.

When the system offers to repair startup, choose that option and wait for a window to load where Windows attempts to locate and fix startup problems. Instead of accepting all changes, look for the button to Cancel repairThis will generate an error report with more technical details about the detected problem.

After canceling, select the option shown. More information or details about the problemWhen you open that view, scroll to the end of the description and locate the reference to a .txt file, which is usually a temporary report. Click on it to open it with Notepad or another simple text editor.

From the editor window, use the File menu and click on Open to access the file explorer of the system. Use this window to navigate the disk to the path where the System32 folder is located (usually C:\Windows\System32), which is where essential Windows utilities are stored.

In that location, look for the file called Utilman.exe, which is the accessibility manager that is launched from the home screenChange its name to something like Utilman2.exe to keep it, and then locate the cmd.exe executable (the command prompt) and rename it to Utilman.exe.

Once the files have been renamed, close all dialog boxes, end the repair wizard, and let the system restart normally. When you return to the login screen, the button bottom corner accessibility (the one that previously opened the help options) will now launch a command prompt window with elevated privileges.

From that console, type the command net user Press Enter to have Windows display the list of users on the computer. Locate the exact username whose password you want to change, and then run the command again followed by that username and an asterisk, for example: net user YourUsername *.

When you do this, the system will ask you to Write a new password for that account.You can leave the field blank if you prefer. Type the new password (nothing will be displayed while you type) or press Enter to avoid setting a password. Repeat the confirmation process and wait for the message that the command has completed successfully.

After closing the command console, you will be able to Log in with the new password or without any passwordDepending on your choice. It is highly recommended that, once inside, you revert the file changes in System32 to return Utilman and cmd to their original state, and that you create simpler recovery methods for the future.

Format or reset the computer by deleting everything.

When none of the above is viable or you've decided you don't mind losing the device's contents, there's always the radical option of reset the PC by erasing all data and restoring it to its factory settings, as if you had just taken it out of the box.

In Windows 10 and Windows 11, you can access this option from the recovery environment. On the login screen, hold down the Shift key while clicking the power icon and select Restart. This will open the advanced options menu when the system restarts.

Sign in Choose an option, then Troubleshoot, and finally, Reset this PCThere you will be given the option to keep your files or remove everything. If you want a complete format and don't care about the content, select the option to erase everything.

Upon confirmation, Windows will proceed to Remove programs, settings, and personal filesThen it will perform a completely clean reinstall of the system. When the process is complete, the computer will restart, displaying the welcome screen where you can create a new user, set a new password, and configure your preferences again.

Steam Windows 10
Related article:
What to do when you forget your Windows password

Forgetting your Windows password is quite stressful, but in practice there are multiple ways to recover it. Regain access without losing your data If you choose the appropriate method according to your account type: from official Microsoft assistants for cloud accounts, through security questions and reset disks in local accounts, to advanced techniques with external tools or command console, leaving a complete computer reset as a last resort when there is nothing left to save or you prefer to start from scratch. Share the guide to recover your password in Windows if you have forgotten it.