Home Computer Linux How to reset Windows password using Ubuntu?

How to reset Windows password using Ubuntu?

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

Disclaimer: MashTips is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission at no extra cost to you.


  1. 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.

  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. 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!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free Newsletter


Best Clipboard Manager Windows Tools for Efficiency

We often copy scraps of data around for easy pasting  and it is a daily routine for us to move several layers of data...

4 Best Windows 10 Shutdown Timer Solutions to Schedule It

There are a few benefits of setting a timer to auto shutdown Windows 10 computer. Scheduling shutdown on Windows will free you up, allowing...

How to Setup Windows 10 Timeline Feature on PC?

Timeline Feature in Windows 10 allows you to resume your previous tasks across platforms quickly. The latest Windows 10 update lets you view your...

How to setup Concurrent Remote Desktop Sessions?

This tutorial will help you to setup Concurrent Remote Desktop Sessions in Windows XP SP2. Windows XP does not allow concurrent sessions for its...

How to Optimize Windows 10 for Gaming PC?

There is no need to have an expensive computer hardware for a good gaming experience. You can have your Windows 10 computer and tweak...

How to install apps for windows 8

Windows 8 is the transition of windows to the apps world. Microsoft has started Windows Store for providing apps for Windows 8 users. Now...
%d bloggers like this: