How to use a PC that can no longer log in by forcibly resetting the Windows password with `` chntpw ''

Setting a password on your computer is very important from a security perspective, but if you forget your password or lose your password from your previous owner, you will have access to the data on your computer. You will fall into a situation where you can not do it. 'Chntpw' is a command that can forcibly reset the Windows password and avoid such situations.

chntpw | Remove, bypass, unlock and reset forgotten Windows password

If you forget your Windows password and enter the wrong password, the message 'The password is incorrect. Please enter it again.' Will be displayed as shown in the image, and you will not be able to log in.

chntpw is a command that runs on Linux. This time, try using chntpw using Ubuntu 18.04. First, access the following site and download the OS.

Get Ubuntu | Ubuntu | Ubuntu

Click 'Download' in the red frame to download the file.

Next, download ' Rufus ' for creating a USB memory for OS boot from the following.

Rufus-easily create a bootable USB drive

Click the red frame under 'Download' to download the executable file.

Run the downloaded executable file to start Rufus.

Insert USB memory into PC. 4GB is sufficient for the capacity of the USB memory used.

After confirming that the inserted USB memory is recognized by Rufus, click “Select” and…

Select the file with the extension 'iso' downloaded earlier and proceed to 'Open'.

After confirming that the selected file name is displayed, click 'Start'.

A confirmation screen for the mode is displayed. Click 'OK' with the settings as they are.

A warning screen will be displayed stating that the contents of the USB memory will be erased. If you proceed with 'OK' ...

The contents of the ISO file will be installed on the USB memory.

When the progress bar shows 'Ready', remove the USB flash drive.

Insert the created USB memory into the PC whose password you want to reset.

Restart the PC and display the

BIOS screen. The method of displaying the BIOS screen differs depending on the PC. When you select the USB memory you just inserted on the 'End' tab, ...

Ubuntu installed on the USB memory starts.

When Ubuntu starts, select 'Japanese' from the list on the left and click 'Try Ubuntu'.

When the desktop appears, click the button at the bottom left.

Start the software in the red frame that appears when you search for 'Update' in the search window.

Check the red frame and proceed with 'Close'.

Click 'Reload' when prompted to update package information.

The information will be updated.

Then search for 'Terminal' in the search window. Start a terminal.

Enter the following command to install chntpw.

[code] sudo apt install chntpw [/ code]

This is what it looks like when you enter it in the terminal.

Press the 'Enter' key to start the installation.

Start the filer when the installation is complete.

Go to 'Other Location' and select the disk where Windows is installed.

The directory of Windows C drive is displayed. Click 'Windows'.

Next, click “System32”.

When you find the 'config' folder, right-click and click 'Open in Terminal'.

When the terminal starts, enter the following command.

[code] sudo chntpw -u User name whose password you want to reset SAM [/ code]

If the user name is 'admin', it looks like this.

Executing the command displays a screen for selecting the mode. If an error occurs at this point, restarting Windows once and then restarting it may work. This time, enter '1' to reset the password and press the 'Enter' key.

As soon as the execution is successful, the password is reset, so enter 'q' and press the 'Enter' key.

You will be asked if you want to write the information to the file. Enter 'y' and press the 'Enter' key.

Quit Ubuntu to start Windows. Click the menu on the upper right and click the power button.

Click 'Shutdown' to turn off the PC.

When you remove the USB memory from the PC and restart the PC, Windows starts. If a password has been set, you will be asked to enter it ...

Because the password was reset to an unset state, I was able to log in to Windows without entering a password.

in Review,   Security, Posted by darkhorse_log