Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
possible duplicate of Usage of chntpw – Call me V Jul 11 '12 at 7:19
Rather use Offline registry editor. – Misery Apr 9 at 11:18

2 Answers

To change Administrator password: sudo chntpw SAM. To change another users password: sudo chntpw -u <your-username> SAM Please note the Upper-case of the word SAM

share|improve this answer
When I tried using upper-case it showed some errors regarding the heive . So I used lowercase . I tried using both sudo chntpw sam and sudo chntpw -u username sam . It shows success also . But when I log in to windows it says incorrect password . Thank you . – sandesh yadav Jul 11 '12 at 7:53

That's not it. The new version of chntpw doesn't work with windows 7. You have to go back a version.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.