Tuesday, August 14, 2007

Windows XP -> reset admin pw

On client site I needed to reset the administrative pw of a windows XP box. I used to use a bootable CD w/the chntpw program designed to run on startup, but I didn't have it handy. Here's the steps I followed to reset the pw.

  1. Download the bits for the PLD Rescue CD
  2. boot w/the CD/DVD
  3. #mkdir -p /mnt/win
  4. #modprobe fuse
  5. #ntfsmount /dev/sda2 /mnt/win
  6. #cd /mnt/win/WINDOWS/system32/config
  7. #chntpw SAM SYSTEM SECURITY
    1. follow the prompts (defaults worked for me) to blank the Administrator pw
    2. Prompts can be confusing -> enter "*" to blank the password (vs. leave blank). You will get a confirmation that the pw is being blanked.
  8. #shutdown -h now
  9. boot into XP and log in as Administrator w/o a pw

1 comment:

Anonymous said...

Thanks for writing this.