Howto: Change Windows Administrator password in Ubuntu Hardy Heron Easily
I absolutely hate microsoft products thats why I love breaking it. This hack, is way too easy. Whatever your reason for changing any users password, this simple howto will surely satisfy that need. The only way to prevent this currently is with full disk encryption. Here is how you change windows password within Ubuntu Hardy Heron.
You can either use your livecd or hddsudo apt-get install chntpw
Now its installed, so lets get to work...
Ok I am assuming your using a hardy heron livecd or a Ubuntu Hardy Heron full install
You will now need to mount the windows partition read/write permission then navigate to %systemroot%/system32/config
Once your located in the config directory issue this command to change the passwordchntpw -u administrator SAM
- Prompt for password for 'administrator', if found (otherwise do nothing) use * to blank
Now reboot and login to winblows
Optionally you can skip resetting the password and just install Ubuntu
Comments (16)

Comments by IntenseDebate
tomaszx · 883 weeks ago
defcon 52p · 883 weeks ago
Hullabalooza · 882 weeks ago
i'm a ubuntu newbe and don't quite get the last step of your explanation
"- Prompt for password for 'administrator', if found (otherwise do nothing) use * to blank"
is that something i need to do?
if i run the last command, i only get some information that i find difficult to interpret.
--> or maybe the password is automatically removed after this last command.
my aim is basically to get into the windows recovery console, but forgot my password and try to recover or reset these password.
thanks a lot for any advice
ciao
defcon 52p · 881 weeks ago
MaxT63 · 876 weeks ago
-I know i shouldn't be doing this (from a moral perspective) but they took away my freedoms, and i want revenge.
twatter · 825 weeks ago
MaxT63 · 876 weeks ago
brucefmh · 874 weeks ago
neochick · 872 weeks ago
Wirelessbenny · 866 weeks ago
chntpw -u Administrator SAM
flying caveman · 866 weeks ago
Ben · 865 weeks ago
chntpw version 0.99.3 040818, (c) Petter N Hagen
openHive(SAM) failed: No such file or directory, trying read-only
openHive(SAM) in fallback RO-mode failed: No such file or directory
closing hive SAM
Unable to open/read a hive, exiting..
ben@linux601:~$
Ben · 865 weeks ago
Eleazar · 842 weeks ago
ubuntu@ubuntu:/media/windows/Windows/System32/config$ chntpw -u Administrador SAM
chntpw version 0.99.3 040818, (c) Petter N Hagen
Hive's name (from header): <untwindowsSystem32configSAM>
ROOT KEY at offset: 0x001020 * Subkey indexing type is: 666c <lf>
File size 8192 [2000] bytes, containing 1 pages (+ 1 headerpage)
Used for data: 2/432 blocks/bytes, unused: 1/3632 blocks/bytes.
Simple registry editor. ? for help.
[1020] >
It always launches the registry editor, there's only one account in windows, the administrator account. But it shows nothing =/
Tom Williams · 837 weeks ago
chntpw -u Administrator SAM
chntpw version 0.99.5 070923, (decade) (c) Petter N Hagen
openHive(SAM) failed: No such file or directory, trying read-only
openHive(SAM) in fallback RO-mode failed: No such file or directory
closing hive SAM
Unable to open/read a hive, exiting..
Ben says to open a rootterminal? i have no idea what that means.
Please help
Thanks, Tom
Mark · 834 weeks ago