Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Reset Forgotten Windows 7 Admin Password

· 6 min read · Home Tech

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

If you've forgotten your Windows 7 administrator password, you can reset it using a free tool called Offline NT Password & Registry Editor (often just called "chntpw"). This method works without reinstalling Windows and doesn't require you to know the old password. You'll need another working computer, a USB flash drive (or CD), and about 30 minutes. Note: this process is for your own computer only; using it on someone else's machine without permission is illegal.

What You'll Need

  • A USB flash drive (at least 1 GB) or a blank CD/DVD.
  • Another working computer with internet access to download the tool and create the bootable media.
  • The Windows 7 computer you need to reset (must be powered off).

Step-by-Step

  1. Download the tool. On your working computer, go to the official Offline NT Password & Registry Editor website (pogostick.net/~pnh/ntpasswd). Download the latest usb version (a zip file) that matches your system (32-bit or 64-bit – but for bootable USB, the 32-bit version usually works on both).
  2. Extract the zip file. Right-click the downloaded zip and choose "Extract All". You'll get a folder with several files, including an ISO image (e.g., cd100802.iso) and a usb100802.zip.
  3. Create a bootable USB drive (or burn a CD). If using a USB, extract the usb100802.zip into a new folder. Then run the install.bat file (right-click → Run as administrator). It will format your USB drive and make it bootable. If you prefer a CD, use a tool like ImgBurn to burn the ISO file to a disc.
  4. Boot the Windows 7 computer from the USB/CD. Insert the USB or CD into the locked computer. Restart it and press the boot menu key (usually F12, F11, or Esc, depending on the brand) to select the USB/CD as the boot device. If that doesn't work, you may need to enter BIOS (F2, Del) and change the boot order.
  5. Wait for the tool to load. You'll see a blue screen with text. Press Enter when prompted to continue.
  6. Select the Windows partition. The tool will list detected partitions. Usually it's the first one (e.g., /dev/sda1). Type the number and press Enter. If unsure, the tool shows the size; pick the one that matches your Windows drive.
  7. Specify the registry path. It will ask for the path to the registry files. The default is /WINDOWS/system32/config. Just press Enter to accept.
  8. Choose the action. You'll see a menu. Type 1 for "Edit user data and passwords" and press Enter.
  9. Select the administrator account. The tool lists all user accounts. Type the RID number of the account you want to reset (usually 01 for the built-in Administrator, or the RID shown next to your username). Press Enter.
  10. Clear the password. In the next menu, type 1 for "Blank user password" and press Enter. This removes the password entirely.
  11. Quit and save. Type ! and press Enter to quit the user editor, then type q and press Enter to quit the main menu. When asked "About to write file(s) back?", type y and press Enter.
  12. Reboot. Remove the USB/CD, then press Ctrl+Alt+Del to restart. Windows should boot to the login screen. Leave the password field blank and press Enter – you're in!
  13. Set a new password. After logging in, go to Control Panel > User Accounts and set a new password for your account.

Common Mistakes

  • Wrong partition selected. If you pick the wrong drive, the tool won't find the registry. Always check the size and make sure it's the Windows partition.
  • Not saving changes. Forgetting to type y when asked to write back means nothing changes.
  • Booting from the wrong device. If the computer still boots to Windows, you didn't select the USB/CD in the boot menu. Try again with the correct key.
  • Using a 64-bit tool on a 32-bit system (or vice versa). The tool is mostly 32-bit, but the USB installer may have a 64-bit version. If it fails, try the other version.
  • Not disabling Secure Boot (on some newer PCs). Windows 7 machines usually don't have Secure Boot, but if you're on a newer PC with Windows 7 installed, you may need to disable Secure Boot in BIOS.

Tips

  • Always create a password reset disk (in Control Panel > User Accounts) for future safety – it's the easiest way to reset a forgotten password.
  • If you have multiple user accounts, resetting the built-in Administrator (RID 01) is often the simplest, as it's hidden by default.
  • Write down your new password and store it somewhere safe.
  • Make sure the USB drive is formatted as FAT32 – the installer does this automatically, but if you're manually creating it, use FAT32.

Troubleshooting

  • The tool doesn't boot. Try a different USB port (preferably a rear port on a desktop). If using a CD, try burning at a slower speed. Also check that the boot order is correct in BIOS.
  • "Registry file not found" error. You likely selected the wrong partition. Reboot and try each partition until you find the one with the /WINDOWS/system32/config folder.
  • Password still doesn't work after reset. Make sure you saved the changes (step 11). If you did, try resetting a different account (e.g., the built-in Administrator) and then use that to log in.
  • Account is locked out. If you have lockout policies, the account may be locked. Use the tool to reset the password, but also consider clearing the lockout by resetting the account's failed login count (the tool has an option for that under "Unlock and enable user").
  • BitLocker encryption. If your drive is BitLocker-encrypted, this method won't work because the registry is encrypted. You'll need your BitLocker recovery key.
  • If all else fails, you can use a Windows 7 installation disc to access System Recovery Options and use Command Prompt to copy files, but that's more complex. The tool above is the most reliable free method.

Frequently Asked Questions

Will this delete my files?

No, the tool only modifies the SAM registry file to clear the password. Your documents, programs, and settings remain intact.

Is this legal?

Yes, if it's your own computer. Using it on someone else's machine without permission is illegal and unethical.

Can I use this on Windows 10 or 11?

Technically it can work on older versions, but Windows 10/11 have additional protections (like Microsoft account integration) that make it unreliable. This guide is specifically for Windows 7.

What if I have a Microsoft account (like Hotmail) linked?

Windows 7 doesn't use Microsoft accounts for login by default. If you set up a local account, this works. If you used a Microsoft account, you'd need to reset that online, but that's rare for Windows 7.

How long does it take?

About 15-30 minutes, mostly waiting for the tool to load and write changes.

Can I set a new password instead of blank?

The tool only blanks the password. After logging in, you can set a new one through Control Panel.