In this guide, we'll walk you through all the practical ways to recover access to Windows if you've forgotten your password : from 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 each method from least to most risky, choosing the one that best suits your situation.
Reset your password from the login screen

In modern versions of Windows 10 and Windows 11, the login screen itself includes options to recover your password , provided you have security questions set up or are using a Microsoft account. This is the first method you should try because it's quick and doesn't involve modifying any sensitive system settings.
When you see the login screen, enter any password (even if you know it's incorrect) so Windows displays the correct link or icon. After a failed attempt, a password reset option or an icon will appear next to the password field ; select it to start the recovery wizard.
For local Windows accounts with security questions configured, the wizard will display those questions exactly as you defined them when creating the account . You'll need to enter the answers precisely as you entered them; if they match, the system will allow you to set a new password for that user.
On some computers, you'll also see a "Next" or "Continue" button within the wizard. Simply click "Next" and answer the security questions Windows asks until you reach the screen where you can set a new password. Once saved, you'll be able to 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'll have to move on to other, more advanced methods or use official Microsoft help , which also offers specific account recovery tools and technical support.
Regain access with your Microsoft account

These days, it's 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 going to the desktop , as long as you have access to your recovery email or another verification method.
On the Windows login screen, below the field where you enter your Microsoft account password, click the "I forgot my password" or "I've forgotten my password" link . This will take you to a special wizard that connects to Microsoft servers to verify your identity.
The first thing you'll see is a form where you need to confirm which account you want to recover. Enter your Microsoft account email address exactly as you use it in Windows , and below that, enter the characters shown in the verification image (the typical captcha to prove you're not a robot). When you're finished, click 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 address, on an associated phone number, or using an authenticator app . The most convenient option is usually your recovery email, if you have it properly configured.
Select your preferred method and, if it's an alternate email address, enter the missing part of the address to prove you're the owner . Then click "Send code" or a similar option to have Microsoft 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 numerical code. Enter that code in the corresponding box on the PC you're trying to log in to . You don't need to have your computer fully operational to check your email; you can use your mobile phone or any other internet-connected device.
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 password, one you haven't used before for that same Microsoft account . It should be a strong password (mixing letters, numbers, and symbols) because you'll also use it for other Microsoft services besides Windows.
Once you're finished and the system confirms the change has been applied, return to the Windows login screen and enter your new password . If everything went well, you'll be able to log in without any problems and continue using your computer normally, or, if you prefer, change your login method later (for example, to a PIN).
If the process fails, you don't remember your recovery email, or you have additional account issues, Microsoft offers a dedicated help tool for login problems , as well as forms to recover compromised accounts and technical support via web or chat.
Use security questions on local Windows accounts

If you use a local Windows 10 account (not linked to Microsoft) and set up security questions when you created it, you have a relatively easy way to regain access if you forget your password . However, you'll need to remember the exact answers you wrote down.
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 display 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 won't let you proceed to the part where you can choose a new password . It's advisable to take the time to remember how you typed each answer (accents, capital letters, abbreviations, etc.).
Once you successfully complete these steps, the wizard will prompt you to enter and confirm a new password . From that moment on, this will be the valid password for that local account, and you will be able to log in normally without losing any files or settings.
The main drawback of this method is that if you've forgotten both your password and the answers to your security questions, you won't be able to use this option . In that case, you'll have to resort to other procedures, such as resetting your account through a Microsoft account, using external tools, or employing more advanced methods with the recovery environment.
When Windows doesn't properly sync your Microsoft account password
On some computers, 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 you log in. In other words, your online account has one password, but your PC insists on a different one.
If this happens, first try signing in using your Microsoft account password, not your PIN. Sometimes Windows takes a while to sync the change and may still associate your login with an older password . Try entering passwords you've used with that account in the past, as your computer might still be validating an older version.
To force synchronization from within Windows (when you can still log in with an old password), right-click the Start menu and select "Computer Management" . Then navigate to "Local Users and Groups" and then "Users" until you find your user account.
Double-click your user account to open its properties and uncheck the box labeled "Password never expires ." Apply the changes and close all windows. Afterward, restart your PC a couple of times and log out and log back in several times to allow the system to finish updating your account information.
After that process, Windows should finally 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 officially resetting your account or, as a last resort, reinstalling the system.
Reset password using external tools (PCUnlocker)
If you don't remember your password, 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 passwords . One of the best-known is PCUnlocker, which has a trial version and works by booting your PC from a CD or USB drive.
To use this type of tool, 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) , extract it if necessary, and then burn it to a CD/DVD or create a bootable USB drive from it.
Once you have the bootable 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 , depending on 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 boot order so that the first boot is from the CD/DVD drive or the USB drive , depending 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 booting directly into 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 typically located in C:\Windows\System32\config.
After locating the account file, the utility will display a list of all active system users. Select the account whose password you forgot and click the reset password button . In many configurations, the program will leave the password field blank, allowing you to log in later without entering a password.
This type of software is often effective, but it is still a third-party tool with deep system access . Use it only on computers 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 more technical and delicate method that uses the Windows Recovery Environment to access the Command Prompt (CMD) before logging in . It'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 method, but it can save you from having to format your hard drive. If you're looking for specific information, you can consult how to recover your administrator password.
The general idea is to force Windows to display the "Startup Repair" option. This is usually done 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 moment), until the system detects a failure and offers recovery options.
When the startup options screen appears, choose the option to repair your computer or "Startup Repair" instead of starting Windows normally. After analyzing the system for a while, the wizard 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, when you refuse to send information to Microsoft, an error report appears with a link to a text file . If you open that text file, you can select "Open" from its "File" menu to access Windows File Explorer and browse system folders even if you're not logged in.
Once inside the file explorer, you will need to navigate to the System32 folder, which by default is located at C:\Windows\System32. In that folder you will find the file Utilman.exe, which is the executable for the Windows accessibility manager , and also cmd.exe, which launches the command prompt.
The trick is to rename these files. First, find Utilman, right-click on it, and rename it to something like Utilman2 or Utilman copy , freeing up its original name. Then locate cmd, copy it if you want a backup (for example, as CMD copy), and then rename the main cmd.exe file to Utilman.exe.
Once you've 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 (the one that normally opens the Ease of Access tools) in the lower-left corner. Now, instead, an elevated command prompt window will open.
With the terminal 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 enable the hidden administrator account.
Next, type the command `net user` 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 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 you're back in the system, it's best to undo the changes you made with Utilman and CMD. Reopen File Explorer, go back to C:\Windows\System32, rename the file that's 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 renamed file as a copy). This will restore the accessibility button's normal behavior.
Another similar procedure to change the key in Windows 7
On Windows 7 systems, another variation of this same approach has been used. The goal is again to access File Explorer and System32 through the recovery environment , but the entry point is usually the Startup Repair menu, which is activated when consecutive boot errors occur.
In this case, after selecting "Startup Repair" and waiting for the diagnostic to finish, a window will appear asking if you want to send information about the problem . You should select "Don't send" and then click "View problem details" to open a document with technical information.
At the end of that document, there's usually a reference to a .txt file with a link. Click on that file, and when Notepad opens, use the "File" menu at the top and then "Open ." Again, this will give you access to the file explorer to locate the system folder.
Once in System32, the process is the same: rename Utilman, create a copy of cmd, and replace the accessibility executable with the command prompt . Then close all windows, allow the system to restart, and, once on the login screen, use the accessibility button to open CMD.
Within the console, use the `net user` command again to list the users, and then use `net user Username NewPassword` (typing the password directly at the end of the command). Once you receive the message that the command has completed successfully, you can close the console and use the 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 place , as these are important system components and it's best 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 or you don't mind losing the data stored on your computer, you always have the drastic option of resetting your PC to factory settings . This method deletes programs and, depending on the option chosen, personal files as well, but it practically guarantees that you'll be able to use your 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 select "Restart ." This will boot your system into the advanced recovery environment.
When the blue screen of options appears, select "Choose an option" and then "Troubleshoot." Within that menu, click on "Reset this PC ." Windows will offer several options, including keeping your files or removing everything; in a scenario where you've completely forgotten your password, the most drastic but safest option is "Remove everything."
By selecting "Remove everything," the system will begin the formatting and reinstallation process. The time this takes will depend on your hard drive speed and the type of erase you choose , but once finished, your computer will restart as if it were brand new, displaying the Windows welcome screen and initial setup.
In this initial setup, you can create a new user account, either local or linked to a Microsoft account , set a new password or PIN, and get your computer ready to start fresh. 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 accepted that 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 your system is severely 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 drive or DVD . This method is especially useful when the computer's own recovery environment is malfunctioning or has been modified.
From another computer with internet access, go to the official Microsoft download page for your version: Windows 10 or Windows 11. There you will find tools like the “Media Creation Tool” that guide you step by step to download the ISO and create bootable installation media.
Once you have the USB drive 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 you boot 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've backed up 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 or go to a computer technician who can install the system and, if possible, try to preserve your files . A mistake at this stage can lead to complete data loss, so it's worth proceeding with caution.
In short, while forgetting your Windows password might seem like a disaster, the options for regaining access range from quick fixes on the login screen itself to advanced methods using external tools, recovery environments, and complete reinstalls . Ideally, you should always start with the least invasive procedures (Microsoft account, security questions, built-in reset options) and leave the more drastic ones, such as formatting or a clean install, only for when all other options are exhausted.
Table of Contents
- 1 Reset your password from the login screen
- 2 Regain access with your Microsoft account
- 3 Use security questions on local Windows accounts
- 4 When Windows doesn't properly sync your Microsoft account password
- 5 Reset password using external tools (PCUnlocker)
- 6 Recovering the password using the Recovery Environment and CMD (Windows 7 and advanced cases)
- 7 Another similar procedure to change the key in Windows 7
- 8 Reset Windows by formatting the PC and creating a new account
- 9 Reinstall Windows from an installation USB or DVD
