Change windows Administrator password

9 years ago

Recently I had some problems on my windows box and, somehow, I lost the administrator password. While trying to recover it from Linux, I managed to erase my entire partition table information. I thought everything was lost, but Linux (and google)once again came to my rescue: First, I managed to change the Administrator password using this: 1. sudo apt-get install chntpw 2. Mount the windows partition somewhere (say /media/win) 3. Head to /media/win/windows/system32/config 4. Execute this: chntpw -u administrator SAM. Then, after performing the stupid dd command that erased my MBR (and in the process deleted my entire partition table information), I managed to recover the partition table by using a command called "testdisk" (google for it ;)).