Reset Windows Password Using Ubuntu
I have a funny experience. Few days ago, my senior (at my office) ask me to change his computer password (Windows XP Professional). He said, “…please tell me how to change my password. Just tell me the way and I’ll change the password by myself…“. When I asked him the reason, his answer is “…so you can’t use my computer anymore…”
Yesterday, he called me. “…panoet, do you know my new password?…” and of course “NO” is my answer. “…Why you ask to me? Yesterday you’ve changed your password. Right?…“. Guess, what his answer?
“I’ve forgotten my new password!“! LOL, I think. Yesterday you want to change your password so I can’t use your computer and know you ask me the password because you’ve forgotten your new password. Is it sounds silly, right?
Have you ever experienced anything like that? Lost your Windows password? If you have, how to fix that? First, check out this page and you’ll shocked about the difference!
Reset Windows password?
To reset your Windows password is very easy, as easy as resetting your Ubuntu password. What you need is bootable Ubuntu system (ie. USB, CD or anything) and software called chntpw.
This is step-by-step to reset your Windows password:
- Boot from your bootable device (Ubuntu Live Session)
Shutdown your computer and boot up using your bootable system. So you run Ubuntu on Live Session that means you run your system without install it! - Set your repository
Goto Synaptic PackageManager → Settings → Repositories → Ubuntu Softwareand check the “Software restricted by copyright or legal issues” checkbox. And don’t forget to reload synaptic. - Install CHNTPW
Install from Synaptic Package Manager or use this command on shell:sudo apt-get install chntpw
- Resetting Windows password
- Mount your “Windows installed” device
It’s depending on your system, example:sudo mkdir /media/WINDOWS
sudo mount /dev/sda1 /media/WINDOWSOn my system Windows installed on
/dev/sda1and I want to mount it to/media/WINDOWSthat I’ve created before. - Goto your Windows system configuration folder
Located at[WINDOWS_DEVICE]/WINDOWS/system32/config/:cd /media/WINDOWS/WINDOWS/system32/config/
- Cracking the SAM file
chntpw SAM

There a SAM file on Windows system configuration folder. That’s the file we’re looking for. Let’s crack it
(sounds cool)
And if you see the output similar with image beside, it’s mean you can crack the SAM file.
- Mount your “Windows installed” device
As you see, there is 5 choices. Just type “1″ and press “ENTER” to reset your password.
I’ve try this on my system and work well! But I’ve never try another choices (2-4) yet, you can try yourself.
DONE!!! It’s easy, right? But if you’ve more easy step to reset Windows password, you can share here

OS wise, whether ur using windows or linux and no matter how strong ur psword is, others can always see and steal your data through liveCD. So, one needs to set his computer BIOS pword to prevent liveCD or whatever to start before keying in the right psword. isn’t it?lol
*thanks to klaus knopper who’s invented livecd.
LOL
It’s right. The bestest way to protect your system is by completely apply password to all. Including BIOS…
Trouble some. Hahaha
erm nice sharing.. i bookmark it..=)
I just visited your blog, nice. You can post my post there if you want, but please to including my link in your post. As you can see, there some post on my blog that taken from another sites and I’ve backlinked them. So, if I found something interesting on your blog, it’s possible to backlink that on this blog. Or you can suggest me, by commenting on this blog or just email me. And certainly I’ll very happy to post your post if it’s “qualified”
Again, thanks…
Hello, I dont this works on windows 7. I tried it on my system and didn’t work.
Is it possible for you to confirm please. Thanks a lot
Hi, sorry to hear that.I’ve never tried this method on Windows 7. But on it official website — http://pogostick.net/~pnh/ntpasswd/ — , it’s possible.Btw, I’ve ever tried this method on my own windows system (XP SP3) and didn’t work. But this work on my office computers. Maybe our problems is same, not work on several system…
You can reset a lost or forgot Windows password with 4 methods below: 1. Another valid administrator account which can normally log on. 2. A password reset disk or a repair disc, which is created in advance ( before you lost password ). 3. Third-party software to create a bootable password reset CD/DVD or USB, like Windows Password Reset Tool. 4. Re-install. Will lose data.
Thanks for the advice. But I think most of users will not agree about “loss data”
well, i forgot my password before, and i
have tried the safe Mode and my guest account, but failed to enter the
system.finally i use Windows login Recovery software, I downloaded the
professional free trial and reset my password. Wow, it’s great. users lost
password would better have a try.
Thanks, worked me at last. First when I was trying to install chntpw it threw an error.
$ sudo apt-get install chntpw
“unable to locate package unbuntu”
Then I went to Synaptic Package > Settings > Repositories > checked every one of them. Tried the above command again and chntpw was installed.
if we forget the password that will be a trouble
I will have a try of it!