If you’re locked out of your Windows PC because you forgot the password, you can reset it from another computer, provided you have physical access to the locked machine. This guide walks you through creating a password reset disk or using a Linux live USB to clear the password. You’ll need a second computer with internet access and a USB flash drive (8 GB or larger) or a blank CD/DVD.
What You’ll Need
- A second computer (Windows, Mac, or Linux) with internet access.
- A USB flash drive (at least 8 GB) or a blank CD/DVD (if your PC has an optical drive).
- For the Linux method: a program to write ISO images to USB (e.g., Rufus on Windows, Etcher on any OS).
- For the Windows password reset disk method: a USB drive that you can format (all data on it will be erased).
Step-by-Step
Method 1: Create a Windows Password Reset Disk (for local accounts)
- On the second computer, open the Control Panel and go to User Accounts (or User Accounts and Family Safety).
- Click Create a password reset disk in the left pane. (If you don’t see this option, your Windows version may not support it—skip to Method 2.)
- Insert a USB flash drive. In the Forgotten Password Wizard, select the USB drive and click Next.
- Enter the current password for the account you’re using on the second computer (if any), then click Next and Finish. The reset disk is created.
- Remove the USB drive and insert it into the locked computer.
- On the login screen, after entering a wrong password, click Reset password (or Reset Password… link).
- Follow the Password Reset Wizard, choose the USB drive, and set a new password.
Method 2: Use a Linux Live USB to Clear the Password
- On the second computer, download a Linux distribution like Ubuntu or Linux Mint (ISO file).
- Use a tool like Rufus (Windows) or Etcher (Mac/Linux) to write the ISO to a USB flash drive. This will erase the USB drive.
- Insert the USB into the locked computer and restart it.
- Enter the boot menu (usually by pressing F12, F2, Esc, or Del during startup—the key varies by manufacturer) and select the USB drive as the boot device.
- Choose Try Ubuntu (or similar) to boot into the live environment without installing.
- Open a terminal (Ctrl+Alt+T) and type
sudo fdisk -lto list disks. Identify the Windows partition (usually /dev/sda1 or /dev/nvme0n1p1, look for NTFS or the size). - Mount the Windows partition:
sudo mount /dev/sda1 /mnt(replace sda1 with your partition). - Navigate to the System32 config folder:
cd /mnt/Windows/System32/config - Install chntpw if not present:
sudo apt update && sudo apt install chntpw(on Ubuntu). - Run
sudo chntpw -l SAMto list user accounts. Note the RID (e.g., 01f4 for Administrator). - Clear the password for the target user:
sudo chntpw -u USERNAME SAM(replace USERNAME with the actual username). - Choose option 1 (Clear user password) when prompted, then confirm with y and q to quit.
- Unmount:
sudo umount /mnt, then restart the computer and remove the USB. - At the login screen, leave the password blank and press Enter. You can set a new password later in Settings.
Common Mistakes
- Using the wrong partition in Linux—double-check with
fdisk -lto avoid mounting the wrong drive. - Forgetting to unmount the Windows partition before restarting, which can cause filesystem errors.
- Creating a password reset disk on a different Windows version than the locked PC (e.g., creating on Windows 10 for a Windows 7 PC)—it may not work.
- Booting the USB in UEFI mode when the PC uses Legacy BIOS (or vice versa). Check the boot menu for both options.
- Typing the username incorrectly in chntpw—use
chntpw -l SAMto see the exact names.
Tips
- Always back up important files before attempting any password reset, especially with the Linux method.
- If you have a Microsoft account, you can reset the password online via Microsoft’s website—no second computer needed, just any device with a browser.
- After clearing the password, set a new one immediately to secure your account.
- Use a strong, memorable password or a password manager to avoid lockouts in the future.
- If you have BitLocker enabled, you’ll need the recovery key—the Linux method won’t work without it.
Troubleshooting
- USB not booting: Check the boot order in BIOS/UEFI, disable Secure Boot if enabled, and try a different USB port (USB 2.0 often works better).
- chntpw says “File not found” or “Permission denied”: Make sure you mounted the correct partition and that you’re running commands with
sudo. - Password reset disk not recognized: Ensure the USB is formatted as FAT32 and that you’re using the same Windows version family (e.g., Windows 10 for Windows 10).
- Account is a Microsoft account: The local reset methods won’t work. Reset the password online at account.microsoft.com, then use the new password on the PC.
- Blank password doesn’t work after clearing: Some Windows versions require you to press Ctrl+Alt+Del twice to show the login screen, or you may need to restart again.
- BitLocker recovery screen appears: You must enter the 48-digit recovery key. If you don’t have it, you’ll need to use a system restore point or reinstall Windows.
Frequently Asked Questions
Can I reset a Microsoft account password this way?
No. These methods only work for local accounts. For Microsoft accounts, go to account.microsoft.com and use the “Forgot password” link.
Will I lose my files?
No, both methods preserve your files. However, it’s always wise to back up before making system changes.
Is it legal to reset a password on someone else’s computer?
Only if you own the computer or have explicit permission from the owner. Otherwise, it’s unauthorized access.
Can I use a Mac to create the Linux USB?
Yes, use Etcher for Mac to write the ISO to a USB drive.
What if I don’t have a second computer?
You can borrow one, or use a smartphone with OTG support to write a bootable USB (using apps like Etcher for Android).
Does this work on Windows 11?
Yes, the Linux method works on Windows 11 for local accounts, provided you can boot from USB and BitLocker is not enabled.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix msmpeg2vdec.dll Errors in Windows
- How to Update Sonos App and Speakers
- Unlock iPad Without Apple ID: Is It Possible?
- iOS 18 WhatsApp Notifications Not Working? Fix
- Fix Windows Cannot Locate Suitable Printer Driver
- Spotify Private Listening: Turn It On and Off