Smart Systems for Home

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

Reset Windows XP Password: 3 Working Methods

· 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're locked out of a Windows XP machine because you forgot the password, you can reset it without reinstalling the OS. The three most reliable methods are using the built-in Administrator account (if it's not password-protected), booting into Safe Mode, or using a password reset disk (if you created one earlier). This guide walks you through each method step by step. Note: these methods work only if you have physical access to the computer and are not trying to bypass someone else's security without permission.

What You'll Need

  • Physical access to the Windows XP computer.
  • If using the Safe Mode method, you may need the original Windows XP installation CD (or a bootable recovery disk) if the Administrator account is also locked.
  • For the password reset disk method, you'll need the USB flash drive or floppy disk that was previously created.
  • Basic knowledge of BIOS boot menu (to boot from CD if needed).

Step-by-Step

Method 1: Use the Built-in Administrator Account (Safe Mode)

  1. Turn on the computer and immediately press the F8 key repeatedly until the Advanced Boot Options screen appears.
  2. Use the arrow keys to highlight Safe Mode and press Enter.
  3. On the login screen, you should see a user account named Administrator. If it has no password, click it to log in. If it does have a password, you'll need to use another method (see below).
  4. Once logged in, go to Start > Control Panel > User Accounts.
  5. Select the account you forgot the password for, then click Change the password.
  6. Enter a new password (or leave blank) and confirm. Click Change Password.
  7. Restart the computer normally and log in with the new password.

Method 2: Use a Password Reset Disk

Note: This method only works if you created a password reset disk before you got locked out.

  1. Start the computer and wait for the login screen.
  2. After entering a wrong password once, you'll see a link or message like "Reset password..." or "Use the password reset disk". Click it.
  3. Insert the USB flash drive or floppy disk that contains the reset disk.
  4. Follow the Password Reset Wizard. It will ask you to select the drive where the disk is located.
  5. Type a new password and a password hint (optional). Click Next and then Finish.
  6. Remove the disk and log in with the new password.

Method 3: Use the Recovery Console (Command Line)

This method requires the Windows XP installation CD and works even if the Administrator account has a password, but it requires you to know the Administrator password (or have it blank).

  1. Insert the Windows XP CD and restart the computer.
  2. If prompted, press any key to boot from the CD.
  3. When the "Welcome to Setup" screen appears, press R to enter the Recovery Console.
  4. If you have multiple Windows installations, choose the number that corresponds to your Windows XP (usually 1).
  5. Enter the Administrator password. If it's blank, just press Enter.
  6. At the command prompt, type the following and press Enter after each line:
    copy c:\windows\system32\config\sam c:\windows\system32\config\sam.bak
    copy c:\windows\system32\config\sam c:\windows\system32\config\sam.old
    del c:\windows\system32\config\sam
    copy c:\windows\repair\sam c:\windows\system32\config\sam
  7. Type exit and press Enter to restart the computer.
  8. Remove the CD. The original Administrator account password will be reset to blank, and the user accounts may also have their passwords reset to blank (if they were not changed after initial setup).
  9. Log in with the username (e.g., Administrator) and leave the password blank.

Common Mistakes

  • Using the wrong F8 timing: Pressing F8 too early or too late may not bring up the boot menu. Try pressing it once per second after the BIOS splash screen disappears.
  • Assuming the built-in Administrator account is always unlocked: In XP, the Administrator account is often hidden and may be password-protected. If you can't log in with it in Safe Mode, use another method.
  • Deleting the SAM file incorrectly: In Method 3, if you delete the SAM file without copying the repair version, you may corrupt the system. Always follow the copy commands exactly.
  • Forgetting to remove the password reset disk: Leaving the disk in might cause the wizard to run again on next boot.

Tips

  • Always create a password reset disk when you first set up your password. It's the easiest way to recover later.
  • If you don't have a reset disk, consider using a third-party password recovery tool (like Offline NT Password & Registry Editor) that boots from a CD/USB. These are not official Microsoft tools, so use them at your own risk and only on your own machine.
  • Write down your password and store it in a secure place, or use a password manager.
  • If you're using a domain account (e.g., at work), these methods may not work because the password is stored on the server. Contact your system administrator.

Troubleshooting

If the built-in Administrator account is not visible in Safe Mode: In Windows XP, the Administrator account may be hidden if another account exists. Press Ctrl+Alt+Del twice at the login screen to bring up the classic login dialog, then type Administrator as the username and leave the password blank (or try common passwords).

If the password reset disk is not recognized: Make sure the drive letter matches the one you used when creating the disk. If you used a USB drive, try a different USB port. Also, ensure the disk is not write-protected.

If the Recovery Console asks for the Administrator password and you don't know it: You cannot proceed with Method 3. You'll need to use a third-party tool or reinstall Windows. There is no official way to bypass the Administrator password.

If the system won't boot after using Method 3: You may have damaged the SAM file. Boot from the CD again, enter the Recovery Console, and restore the backup by typing: copy c:\windows\system32\config\sam.bak c:\windows\system32\config\sam (or sam.old). Then restart.

Frequently Asked Questions

Can I reset a Windows XP password without any CD or disk?

If you have a hidden Administrator account with a blank password, you can use Safe Mode. Otherwise, you'll need a password reset disk or a third-party tool. There is no official way to reset a password without any of those.

Will these methods work on Windows 7 or later?

No. These methods are specific to Windows XP. Windows 7 and later have different security mechanisms (like the built-in Administrator account being disabled by default).

Is it legal to reset a Windows XP password?

It's legal if you own the computer or have explicit permission from the owner. Using these methods on someone else's computer without permission is illegal and unethical.

Can I use a Windows XP installation CD from a different version (e.g., Home vs Pro)?

It's best to use the same version and edition. Using a different edition may cause compatibility issues, but the Recovery Console method often works as long as the CD is a Windows XP CD.

What if I don't have the Administrator password for the Recovery Console?

Then you cannot use the Recovery Console method. You'll need to use a third-party password reset tool or reinstall Windows.

Will resetting the password delete my files?

No, these methods only change the password. Your files and settings remain intact. However, if you use a third-party tool incorrectly, there's a risk of data loss, so always back up important data first.