Insert the Ubuntu Live CD and reboot your computer. During startup, repeatedly press the Delete key to access the BIOS.
Once in the BIOS setup utility, go to the Boot tab > Boot Device Priority.
Move the CD/DVD drive to the top of the list and press F10 to save your settings.
Tap on Y (Yes) to confirm your selection and close the BIOS setup utility.
Your computer will boot on the Ubuntu Live CD.
Install the "Chntpw" Package
In the Ubuntu installer, select the desired language settings and click Try Ubuntu.
Go into System > Administration > Synaptic Package Manager to open the package manager.
Next, click Settings > Repositories > Ubuntu Software > Downloadable from the Internet and tick the Community-maintained Open Source software - (universe) checkbox.
Close the Settings menu and click on the Reload button to update the packages.
Make a quick search for the chntpw package (Offline NT Password & Registry Editor). Once found, click on the little star displayed in front of the package and select Mark to Install > Apply.
Identify the System Drive
The next step is to identify the system drive (containing the Windows installation). Go to My Computer and search for the drive containing the Windows folder. Make sure to note down the reference of the system drive; you'll need it later on for a terminal command.
Delete Your Current Password
Go to Applications > Accessories > Terminal and run the
command to get a list the hard disk drives present on your system.
command to select the system drive.
, followed by Enter.
sudo chntpw SAM -i
command to launch the password removal utility (chntpw). Type
and press Enter to validate.
A table containing the names of the Windows users will be displayed. Retrieve the code for the desired user account from the RID column.
followed by RID code of the selected user account and confirm with Enter.
and press Enter to erase the password for selected user account. Once the operation has been carried out, type
and press Enter to quit the terminal.
Close all windows and restart your computer. Don't forget to remove the Ubuntu Live CD.
Connect to your Windows session and set a new password.