How to reset Windows password using Ubuntu?

Last Updated: October 28, 2014

In connection with the Windows viruses and impossibility to start regedit or Windows in whole, sometimes Windows users need to reset windows password from outside. There is one utility in Linux chntpw, which was originally designed to reset passwords, and then acquired the registry editing ability.

Here is the steps to reset the password using Ubuntu OS CD.

1. Boot from a LiveCD or install a second system Ubuntu.
2. Install chntpw utility:

sudo apt-get install chntpw

3. Mount Windows partition:
Find the Windows partition:

$ sudo fdisk -l

Assume it is on /dev/sda2. Next step is mounting of the partition:

$ sudo mkdir /media/windows
$ sudo mount /dev/sda2 /media/windows

4. Find the user whose password will be changed

$ chntpw -l /media/windows/Windows/system32/config/SAM

5. Password resetting

$ chntpw /media/windows/Windows/system32/config/SAM -u Administrator

4 COMMENTS

  1. This is such a great resource that you are providing and you give it away for free. I enjoy seeing websites that understand the value of providing a prime resource for free. I truly loved reading your post. Thanks!

  2. Thanks for taking the time to write that, I found it very interesting. If you get a chance you should visit my blog as well. I hope you have a good day!

  3. I hope you have a nice day! Very good article, well written and very thought out. I am looking forward to reading more of your posts in the future.

Leave a comment