TechBuzzPro

Reset Windows Password Without Losing Data

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can reset a forgotten Windows password without losing your personal files, documents, or installed applications. This process involves using a bootable installation media to access system repair tools or command prompts that allow you to modify authentication mechanisms directly on the hard drive. Your data remains intact because you are not formatting the drive or reinstalling the operating system; you are simply bypassing or resetting the login credential layer.

What You'll Need

  • A working computer with internet access to create the installation media.
  • An empty USB flash drive with at least 8GB of storage space.
  • The Windows Media Creation Tool from Microsoft (downloaded while online).
  • Administrative access to the target PC is not required for this method, but you must be able to boot from USB.

Step-by-Step

  1. Create Bootable Media: On the working computer, visit the official Microsoft website and download the "Media Creation Tool" for Windows 10 or 11. Run the tool, accept the license terms, and select "Create installation media (USB flash drive, DVD, or ISO file) for another PC." Choose the language and edition if prompted, then select "USB flash drive." Insert your USB drive and let the tool format it and copy the necessary files. This may take several minutes.
  2. Boot from USB: Insert the prepared USB drive into the locked Windows PC. Restart the computer. As it powers on, press the specific key to enter the Boot Menu or BIOS/UEFI settings. Common keys include F12, F2, Esc, or Del, depending on the manufacturer. If you are unsure, consult your PC's manual or look for a brief on-screen message during startup. Select the USB drive from the boot order list to start the Windows Setup process.
  3. Access Repair Options: Once the Windows Setup screen appears, click "Next" and then "Repair your computer" in the bottom-left corner. Navigate to Troubleshoot > Advanced options > Command Prompt. This opens a black window where you can execute system commands. Note: In some newer builds, you might need to select "Command Prompt" directly from the Advanced options menu.
  4. Replace Accessibility Files (The Sticky Keys Trick): In the Command Prompt, identify your Windows drive letter. It is often C:, but sometimes D: if recovery partitions exist. Type dir c: and press Enter. Look for folders like "Windows" and "Users" to confirm the correct drive. Repeat for other letters until you find the main OS drive. Assume it is C: for the following steps.r>Type the following commands one by one, pressing Enter after each:
    cd \windows\system32
    ren sethc.exe sethc.bak
    copy cmd.exe sethc.exe
    This replaces the Sticky Keys executable with the Command Prompt executable. When you later press Shift five times at the login screen, it will launch a command prompt with administrative privileges instead of opening the accessibility menu.
  5. Reboot and Reset Password: Type exit and close the Command Prompt. Click "Continue" to reboot the PC normally. At the login screen, press the Shift key five times rapidly. A Command Prompt window should appear. Type net user [username] [newpassword]. For example, if your username is "John" and you want the password to be "NewPass123", type net user John NewPass123 and press Enter. You will see a message confirming the password was changed successfully.
  6. Log In and Restore Files: Close the command prompt and log in with your new password. Once inside Windows, it is highly recommended to restore the original Sticky Keys file for security reasons. Open Command Prompt as Administrator again and run:
    cd \windows\system32
    del sethc.exe
    ren sethc.bak sethc.exe This reverses the modification, ensuring the system behaves normally for future updates and security scans.

Common Mistakes

A frequent error is assuming the Windows drive is always C:. Always verify the drive letter by checking for the presence of the "Windows" and "Users" folders before running replacement commands. Another common mistake is typing the wrong username in the net user command, which creates a new user rather than resetting the existing one. Use net user without arguments to list all valid usernames on the system. Additionally, do not skip the step of restoring the original sethc.exe file, as leaving cmd.exe in its place can be seen as a security vulnerability by antivirus software or future Windows updates.

Tips

If you are using a Microsoft Account (email login) rather than a local account, this method will only work for local accounts. For Microsoft Accounts, you must reset the password online via the Microsoft website on any device, then ensure the PC is connected to the internet to sync the change. Always keep a backup of important data on an external drive or cloud service to prevent loss in case of hardware failure. If the Command Prompt method fails due to BitLocker encryption being enabled, you will need your BitLocker recovery key to proceed, as the drive cannot be accessed without it.

Troubleshooting

If the Command Prompt does not open when pressing Shift five times, ensure you performed the file replacement correctly and that the drive letter was accurate. If you receive an "Access Denied" error, ensure you are running the command prompt from the Windows Recovery Environment (WinRE), not from within the normal OS. If the system boots but still asks for a password, verify that you selected the correct username. If you cannot boot from USB, check the BIOS/UEFI settings to ensure "Secure Boot" is disabled temporarily or that the USB drive is recognized in the boot priority list. If all else fails and you have a Microsoft Account, use the official Microsoft password reset page on a different device.

Frequently Asked Questions

Will this delete my files?

No. This method modifies system executable files to gain administrative access. It does not touch your personal files, documents, photos, or installed programs. Your data remains safe on the hard drive.

Does this work for Microsoft Accounts?

No. The technical workaround described here only applies to Local Accounts. If you sign in with an email address (Outlook, Hotmail, Live), you must reset the password via the Microsoft website on another device and connect to the internet.

Is this legal?

Yes, provided you are the owner of the computer and have the right to access it. Using these techniques on computers you do not own or have permission to access is illegal and violates computer misuse laws.

What if I forgot my username?

In the Command Prompt opened via the Sticky Keys trick, type net user and press Enter. This will list all user accounts on the computer. Identify the correct username from the list before resetting the password.

Can I use a Linux USB stick instead?

While possible, it is more complex and risky for average users. The Windows installation media method is officially supported, safer, and less likely to cause accidental damage to system files compared to third-party Linux-based tools.