Sometimes you forget your Windows password, or maybe your workmate leave and you replace him and you cannot access his ex-computer because it have a password. And you cannot guess his/her password to login. And you cannot reinstall the Windows because it have lot if important data and software that need to be installed and tweak. Then reinstall the Windows is not the answer.
If you had this problem then don’t worry, you still can reset Windows 7 password using Ubuntu. Whether boot it from USB or using Ubuntu live CD. To reset Windows 7 using Ubuntu you can use chntpw.
So to install chnptw on Ubuntu, follow the steps below:
- Open your terminal and add universe repository, by editing sources.list:
and add or enable this line:
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
- Update your repository list:
- Install chnptw:
- chnptw installed.
Note this chnptw only work in OS 32 bit version. for 64 bit version you need to download from debian source hereand pick 64 bit version.
- Get your hard drive label by using:
- Find where you install your Windows 7, then go to that hard drive and windows installation folder
- Use chnptw to reset password:
- It will show you User details and command to reset password:
Choose “1” to clear the default user password and press “y” to confirm.
- You are done. Back to boot to your Windows and there is no password anymore. You can set the password from the Windows again if you want.
Note: to reset password for user other than administrator or default user use this command:
chntpw –u SAM