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

  • There are built-in methods in Windows (Microsoft account, security questions, and reset from login) that allow you to recover your password without losing data.
  • External tools and advanced use of the command console offer additional solutions, but they involve more risk and require following the steps precisely.
  • If recovery procedures fail or the system is damaged, it is always possible to reset or reinstall Windows, assuming the possible loss of files.

Recover access to Windows if you forgot your password

In this guide we will see, step by step, All the practical ways to regain access to Windows if you've forgotten your passwordFrom using your Microsoft account and security questions, to external tools, more advanced command-line tricks, or, in the worst-case scenario, a complete system format. The idea is that you can try different methods, from least to most risky, choosing the one that best suits your situation.

Reset your password from the login screen

Windows login screen for password reset

In modern versions of Windows 10 and Windows 11, The login screen itself includes options to recover the passwordThis works as long as you have security questions set up or are using a Microsoft account. It's the first method you should try because it's quick and doesn't involve touching any sensitive system components.

When you see the login screen, enter any password (even if you know it's incorrect) so that Windows displays the appropriate link or icon. After a failed attempt, the option to reset the password or an icon next to the password field will appear.Select it to start the recovery wizard.

On local Windows accounts that have security questions configured, The assistant will show you those questions exactly as you defined them when you created the account.You will have to write the answers exactly as you left them at the time; if they match, the system will allow you to enter a new password for that user.

On some computers you will also see a next or continue button within the wizard. Simply click Next and answer the security questions that Windows asks for. until you reach the screen where you can set a new password. Once saved, you can log in again as normal.

If these steps don't work, you don't remember your security answers, or the reset option simply doesn't appear, You will have to switch to other more advanced methods or use official Microsoft helpwhich also offers specific account recovery tools and technical support.

Regain access with your Microsoft account

Reset Windows password with Microsoft account

Nowadays it is very common to log in to Windows 10 or 11 with a Microsoft account (the same one you use for Outlook, OneDrive, Xbox, etc.). The advantage is that if you forget your password, you can change it from the login process itself without accessing the desktop.provided you have access to the recovery email or another verification method.

On the Windows login screen, below the field where you enter your Microsoft account key, Click on the "I forgot my password" or "I have forgotten my password" linkThis will take you to a special assistant that connects to Microsoft servers to verify your identity.

The first thing you'll see is a form where you must confirm which account you want to recover. Enter your Microsoft account email address exactly as you use it in WindowsThen, enter the characters shown in the verification image (the typical captcha to prove you're not a robot). When you're finished, press the button to continue.

In the next step, Microsoft will ask you to confirm your identity with a second factor. You can usually choose between receiving a code in an alternate email, on an associated phone number, or using an authenticator app.The most convenient option is usually the recovery email, if you have it configured correctly.

Select your preferred method, and if it's an alternate email address, Fill in the missing part of the address to prove you are the ownerThen click on “Send code” or a similar option so that Microsoft can send you the security code.

In a few seconds you should receive a message in your secondary email or on your mobile phone with a numeric code. Enter that code in the corresponding box on the PC you are trying to log into.You don't need to have your computer fully operational to check your email; you can use your mobile phone or any other device connected to the internet.

If the code is correct, the assistant will show you a screen to set a new password. Here you need to enter a completely new key, one that you haven't used before for that same Microsoft account.It should be secure (mixing letters, numbers, and symbols) because you will also use it for other Microsoft services besides Windows.

When you finish and the system confirms that the change has been applied, Return to the Windows login screen and enter the new passwordIf everything has gone well, you will log in without problems and can continue using the computer normally or, if you prefer, change the login type later (for example, change to PIN).

In case the process fails, you don't remember your recovery email, or you have additional problems with your account, Microsoft offers a specific help tool for login problemsas well as forms to recover compromised accounts and technical support via web or chat.

Use security questions on local Windows accounts

Security questions to recover your Windows password

If you use a local account in Windows 10 (not linked to Microsoft) and you set up security questions when you created it, You have a relatively simple way to regain access when you forget your passwordHowever, you need to remember the exact answers you wrote down back then.

On the login screen, after entering an incorrect password, A link or box will appear indicating that you can reset your password.Click on it and Windows will show you a series of security questions one after the other, which you must answer correctly.

Answer all questions carefully because If you make a mistake, the system will not let you proceed to the part where you can choose a new password.It is advisable to take the time to remember how you wrote each answer (accents, capital letters, abbreviations, etc.).

Once you manage to overcome them, the assistant will ask you to Enter a new password and confirm itFrom that moment on, that will be the valid key for that local account, and you will be able to log in normally without losing files or settings.

The main drawback of this method is that, just like you forgot your password, You've also forgotten the answers to the security questions, so you won't be able to use this option.In that case, you will have to resort to other procedures, such as resetting through a Microsoft account, external tools, or more advanced methods with the recovery environment.

When Windows doesn't properly sync your Microsoft account password

In some teams, something quite frustrating can happen: You change your Microsoft account password on the web or on another device, but Windows still only accepts the old password. When logging in. That is, your online account has one password and the PC insists on a different one.

If this happens to you, first try logging in using your Microsoft account password, not your PIN. Sometimes Windows takes a while to sync the change and continues to associate the login with an old password.Try entering keys you've used in the past with that account, because the system might still be validating an older version.

To force synchronization from within Windows (when you can still log in with a previous password), Open the Start menu by right-clicking and enter "Computer Management"Inside, navigate through "Local Users and Groups" and then through "Users" until you locate your user account.

Double-click on your user to open their properties and Uncheck the box “Password never expires”Apply the changes and close all windows. Afterward, it's a good idea to restart your PC a couple of times and log out and log back in several times so the system can finish updating your account information.

Once that process is over, Windows should eventually sync your current Microsoft account password. and stop accepting older versions. If you're still locked out and can't log in, you'll probably have to resort to recovery methods like an official account reset or, as a last resort, a system reinstallation.

Reset password using external tools (PCUnlocker)

If you don't remember your password, you don't have access to your Microsoft account or security questions, and the computer is yours. One alternative is to use external tools designed to reset Windows passwordsOne of the best known is PCUnlocker, which has a trial version and works by booting the PC from a CD or USB.

To use these types of tools, you will need a second working computer. From that other PC you will need to download an ISO image of PCUnlocker (for example, pcunlocker.iso)Unzip it if necessary and then burn it to a CD/DVD or create a bootable USB drive with it.

Once you have the boot media ready, connect it to the locked computer. Turn on the computer and, before Windows starts, enter the BIOS or UEFI by repeatedly pressing a key such as F2, Delete, or F8.According to your motherboard or laptop manufacturer, do this several times during startup until the setup menu appears.

Within the BIOS or UEFI menu, use the arrow keys to navigate to the Boot tab. Change the device priority order so that the first boot is from the CD/DVD drive or the USB deviceDepending on where you saved the PCUnlocker image, save the changes with F10 or the corresponding key and allow the computer to restart.

Upon restarting, if everything is configured correctly, The computer will load the PCUnlocker interface instead of directly starting Windows.On that screen, choose the basic method for recovering local passwords, usually something like "Reset Local Admin/User Password". Then specify the path to the Windows SAM file, which is usually located in C:\Windows\System32\config.

After locating the accounts file, the utility will display a list of all active users on the system. Select the account whose password you forgot and click the password reset buttonIn many configurations, the program will leave the password blank, so you can log in later without having to type any password.

This type of software is usually effective, but It is still a third-party tool with deep access to the systemUse it only on equipment you own, always download from official or trusted websites, and understand that any manipulation of this kind carries certain risks if not done carefully.

Recovering the password using the Recovery Environment and CMD (Windows 7 and advanced cases)

There is a much more technical and delicate method that takes advantage of the Windows recovery environment to access the command prompt (CMD) before loginIt's especially well-known in Windows 7, where the recovery process was more manual, but some variations have also been used in other versions. It's not the most convenient system, but it can save you without having to reformat. If you're looking for specific information, you can consult how. recover administrator password.

The general idea is to cause Windows to display the "Startup Repair" option. This is usually achieved by forcing the computer to shut down during startup several times in a row. (by holding down the power button or disconnecting the power at a controlled time), until the system detects a fault and offers recovery options.

When the screen with the boot options appears, choose the option to repair your computer or "Startup Repair" instead of starting Windows normally. After analyzing the system for a while, the assistant may suggest a system restore or certain automatic repairs.You should cancel these suggestions and continue until you see a window with details of the problem.

In some scenarios, by refusing to send information to Microsoft, An error report appears with a link to a text file.If you open that text file, from its "File" menu you can select "Open" and thus access the Windows File Explorer, browsing through the system folders even if you are not logged in.

Once inside the explorer, you will need to go to the System32 folder, which by default is located in C:\Windows\System32. In that folder you will find the Utilman.exe file, which is the executable for the Windows accessibility manager., and also cmd.exe, which launches the command console.

The trick is to rename these files. First, find Utilman, right-click on it, and rename it to something like Utilman2 or Utilman copyso that you leave its original name free. Then locate cmd, copy it if you want to have a backup copy (for example, as CMD copies) and then rename the main file cmd.exe to Utilman.exe.

Once you have made these changes, close all windows and let the repair wizard finish, which will cause your computer to restart. When you return to the login screen, you'll see the accessibility icon in the bottom left corner. (the one that normally opens the Ease of Access tools). Now, instead, an elevated command console window will open.

With the console open, type the command net user and press Enter. The system will display a list of users configured on the computer. Find the exact username whose password you want to change; pay close attention to uppercase and lowercase letters, accents, and spaces. If you need alternatives, you can activate the hidden administrator account.

Next, type the net user command again, this time followed by the username and an asterisk. For example: net user Username *Press Enter and Windows will prompt you to enter a new password for that user. You can type a new password or leave it blank (by pressing Enter without typing anything) if you prefer not to have a password.

If everything goes well, the console will display a message indicating that the command has been completed successfully. Close the CMD window and, in the password field on the login screen, enter the new password you just set.If you left it blank, simply press Enter and you should be able to access the desktop.

Very important: once inside the system, it is advisable to undo the change you made with Utilman and CMD. Reopen File Explorer, go back to C:\Windows\System32, and rename the file that is now called Utilman (which is actually CMD) back to its original name, cmd.exe.and leave the accessibility file as Utilman.exe (you can restore the one you renamed as a copy). This will restore the accessibility button's normal behavior.

Another similar procedure to change the key in Windows 7

Another variant of this same approach has been used on computers running Windows 7. The goal is once again to access the "File Explorer" and System32 through the recovery environmentHowever, the entry point is usually the "Startup Repair" menu, which is activated by causing consecutive boot errors.

In this case, after selecting “Start-up Repair” and waiting for the diagnostic to finish, A window appears asking if you want to send information about the problemYou must select “Do not send” and then click on “View problem details” to display a document with technical information.

At the end of that document there is usually a reference to a .txt file with a link. Click on that file and, when Notepad opens, use the top menu “File” and then “Open”Again, that will allow you to access the file explorer to locate the system folder.

Once in System32, the pattern is the same: Rename Utilman, create a copy of cmd, and replace the accessibility executable with the command console.Then exit all windows, allow the system to restart, and once on the home screen, use the accessibility button to open CMD.

Within the console, you again use the net user command to list the users, and then net user Username NewPassword (by typing the key directly at the end of the command). Upon receiving the message that the command has completed successfully, you can close the console and use that newly set password to log in.

Once you have regained access, don't forget to revert the changes in System32: Restore the CMD file to its correct name and put Utilman back in its placesince they are important components of the system and it is advisable to leave them as they were to avoid strange behavior in the future.

Reset Windows by formatting the PC and creating a new account

If none of the above works for you or you don't mind losing the data stored on your computer, You always have the radical option of resetting your PC to factory settings.This method deletes programs and, depending on the option chosen, also personal files, but it practically guarantees that you will be able to use the computer again with a new account and password.

In Windows 10 and Windows 11, you can access system recovery options directly from the login screen. Hold down the Shift key while clicking the Power icon and choose “Restart”This will cause the system to boot into the advanced recovery environment.

When the blue options screen appears, select “Choose an option” and then “Troubleshoot”. Within that menu, click on “Reset this PC”Windows will offer you several options, including keeping your files or removing everything; in a scenario of completely forgetting your password, the most drastic but safe option is "Remove everything".

By selecting “Remove everything”, the system will begin the formatting and reinstallation process. The time it takes will depend on the speed of your disk and the type of erase you choose.But once finished, the computer will restart as if it were new, displaying the welcome screen and the initial Windows setup.

In that initial configuration you will be able to Create a new user account, either local or associated with a Microsoft account.Set a new password or PIN and leave the device ready to start from scratch. Keep in mind that this procedure deletes access to the previous account and its data, so you should only use it if you've already assumed you don't need to recover anything or if you've made a backup at another time.

Reinstall Windows from an installation USB or DVD

If the system is badly damaged or you prefer a completely clean installation, you can Download the official Windows 10 or Windows 11 image from the Microsoft website and create an installation USB or DVD.This method is especially useful when the computer's own recovery environment is not working properly or has been modified.

From another computer with internet access, go to the official Microsoft download page for your version: Windows 10 or Windows 11There you will find tools like the “Media Creation Tool” that guide you step by step to download the ISO and create a bootable installation medium.

Once you have the USB or DVD ready, connect it to the locked computer and Configure the BIOS/UEFI to boot from that device.Just as you would when using external tools like PCUnlocker. When booting from the media, the classic Windows installation wizard will appear.

During the process, you can choose between updating while keeping some files or performing a clean installation by formatting the system partition. If you want to completely forget your old password and start from scratch, it's recommended that you format the drive where Windows is installed.making sure beforehand that you have saved any important data that you can still recover.

If you're not comfortable preparing the USB drive or modifying the BIOS, you can ask someone with more experience for help. Go to a computer technician to install the system and, if possible, try to keep your files.A mistake at this point can lead to complete data loss, so it's worth proceeding with caution.

In short, although forgetting your Windows password might seem like a disaster, Options for regaining access range from quick fixes on the home screen itself to advanced methods using external tools, recovery environments, and complete reinstalls.Ideally, you should always start with the less aggressive procedures (Microsoft account, security questions, built-in reset options) and leave the more invasive ones, such as formatting or clean installation, only for when there is no other possible solution.

windows password
Related article:
I forgot my Windows password: secure, step-by-step solutions