I tried resetting the password of windows 7 Using chntpw
command in Ubuntu . It showed success. But when I try to login from Windows it does not seem to be changed.
I first used live USB of Ubuntu 11.10 and did Try Ubuntu. Then I did:
sudo apt-get install chntpw
And then:
cd /media/Vista/Windows/System32/config
sudo chntpw -u username sam
I followed these instructions and got success like this:
Hives that have changed:
# Name
0 <sam>
Write hive files? (y/n) [n] : y
0 <sam> – OK .
But when I try to login to windows with blank password, I could not log in.
I also tried changing the password and showed success but I could not log in with that password.
Best Answer
The 0.99.6 version of chntpw is totally disfunctional: https://bugs.launchpad.net/ubuntu/+source/chntpw/+bug/1046622
I struggled more than a hour to find this out.
Try to use 0.99.5 instead, it works for me:
https://launchpad.net/ubuntu/karmic/i386/chntpw/0.99.5-0+nmu1