Reset Windows 7 Password with USB
In this article
Yes, you can reset a forgotten Windows 7 password using a USB drive, but you'll need another working computer and a free tool called Offline NT Password & Registry Editor (also known as chntpw). This method creates a bootable USB that lets you clear or change the password directly from the Windows 7 system's registry. It works for local accounts (not Microsoft accounts, which didn't exist in Windows 7). You'll need to boot from the USB on the locked PC, which may require changing the BIOS boot order.
What You'll Need
- A USB flash drive (at least 1 GB; 2 GB or more is safer). All data on it will be erased, so back it up first.
- A working computer with internet access to download the tool and create the bootable USB.
- The Windows 7 PC you want to unlock (it must be a local account, not a domain account).
- Basic knowledge of your PC's BIOS/UEFI setup (usually accessed by pressing F2, F12, Del, or Esc during startup).
Step-by-Step
- Download the Offline NT Password & Registry Editor ISO. On your working computer, go to the official website (pogostick.net/~pnh/ntpasswd) and download the latest cd140201.zip (or similar) file. This is a small ISO image.
- Extract the ZIP file. Right-click the downloaded ZIP and choose "Extract All". You'll get a folder containing the ISO file (e.g., cd140201.iso).
- Create a bootable USB using Rufus. Download Rufus (a free USB formatting tool) from rufus.ie. Plug in your USB drive, open Rufus, and select your USB drive under "Device". Under "Boot selection", click "Select" and choose the ISO file you extracted. Leave the other settings at their defaults (Partition scheme: MBR for BIOS or UEFI-CSM; File system: FAT32). Click "Start" and wait for the process to finish. This will erase the USB drive.
- Boot the locked Windows 7 PC from the USB. Insert the USB into the locked PC and restart it. As it starts, press the key to enter the boot menu (often F12, F11, or Esc) or the BIOS setup key (F2, Del). If using the boot menu, select your USB drive. If using BIOS, change the boot order to put USB first, save and exit. The PC should boot into the tool's menu.
- Select the Windows installation. The tool will scan for Windows installations. It usually shows a list like
[1]for the first partition. If you see multiple, pick the one that contains the Windows folder (often the largest or first). Type the number and press Enter. - Choose the registry hive. The tool will ask which registry file to load. Select
[1]for Password reset [sam system security] and press Enter. - Proceed with password reset. You'll see a prompt: "What to do?" Type
1(Edit user data and passwords) and press Enter. - Select the user account. The tool lists all local accounts with RID numbers. Find the username you forgot the password for. Type its RID (the number in the left column) and press Enter.
- Clear or change the password. You'll see options like
1 - Clear (blank) user passwordand2 - Set new password. Type1to clear the password (so you can log in with no password) or2to set a new one (you'll be asked to type it twice). Press Enter. - Save the changes. The tool will ask "About to write file(s) back? Do it?" Type
yand press Enter. Then typeqto quit the password editor, andnwhen asked if you want to write the registry files again (unless you made more changes). - Reboot. Remove the USB drive, then press Ctrl+Alt+Del or type
exitto restart. Windows 7 should boot normally. If you cleared the password, just press Enter at the login screen. If you set a new one, enter it.
Common Mistakes
- Wrong boot order: Not changing the BIOS boot order or not using the boot menu correctly. Make sure USB is set as the first boot device.
- Choosing the wrong partition: If you have multiple Windows installations or recovery partitions, selecting the wrong one will cause the tool to fail to find the SAM file. Double-check the partition that contains the Windows folder.
- Typing the wrong RID: Selecting the wrong user account (e.g., Administrator instead of your user) will reset the wrong password.
- Not backing up the USB: The tool erases the USB drive. If you had important files on it, they're gone.
- Using a domain account: This method only works for local accounts. If you're on a company domain, you'll need to contact your IT administrator.
Tips
- Before you start, write down your Windows 7 version (Home Premium, Professional, etc.) and whether it's 32-bit or 64-bit. The tool works for both, but it helps to know.
- If you have BitLocker enabled on the system drive, this method will not work because the drive is encrypted. You'll need the BitLocker recovery key.
- After resetting the password, you may want to create a password reset disk for future emergencies. In Windows 7, go to Control Panel > User Accounts and click "Create a password reset disk" (requires a USB or floppy).
- Keep the bootable USB in a safe place. You can reuse it for other Windows 7 PCs.
- If the tool asks about "hive" or "system" files, just accept the defaults unless you know what you're doing.
Troubleshooting
- PC doesn't boot from USB: Check if your BIOS supports booting from USB. Some older PCs may need to enable "Legacy USB" or "USB Boot" in BIOS. Also, try a different USB port (preferably a rear port).
- Tool says "No SAM file found": You selected the wrong partition. Restart the tool and try a different number. Also, ensure the Windows installation is on a NTFS partition (the tool can't read exFAT).
- Password reset doesn't stick: After you save and reboot, if the password still doesn't work, you may have accidentally chosen the wrong user. Repeat the process and double-check the RID. Also, make sure you typed
ywhen asked to write the files back. - Blue screen or boot loop after reset: This can happen if the registry was corrupted. Try booting into Safe Mode (press F8 during startup) and see if you can log in. If not, you may need to use System Restore from the Windows 7 installation disc.
- USB isn't recognized: Try a different USB drive or recreate the bootable USB using a different tool like UNetbootin. Also, ensure the USB is formatted as FAT32 (Rufus does this by default).
Frequently Asked Questions
Will this work if I have a Microsoft account?
No. Windows 7 doesn't use Microsoft accounts for login; it only uses local accounts. If you're on Windows 8 or 10, this method won't work for Microsoft accounts.
Is it legal to reset a Windows 7 password this way?
Yes, as long as you own the computer or have permission from the owner. It's a standard recovery method. Using it on someone else's PC without permission is illegal.
Will I lose any files or programs?
No. This method only changes the password in the registry. Your files, programs, and settings remain untouched.
Can I use this method to reset the administrator password?
Yes, you can reset the built-in Administrator account password if it's enabled. However, the built-in Administrator is disabled by default in Windows 7, so you may need to enable it first.
What if I have BitLocker encryption enabled?
This method won't work because the drive is encrypted. You'll need the BitLocker recovery key to unlock the drive before you can reset the password.
Is there a simpler built-in method?
Windows 7 has a built-in password reset disk feature, but you must create it before you forget the password. If you didn't create one, this USB method is the most reliable free option.