Home  >  Article  >  Operation and Maintenance  >  Forgot win10 boot password and no USB flash drive

Forgot win10 boot password and no USB flash drive

王林
王林Original
2019-10-30 09:22:2636649browse

Forgot win10 boot password and no USB flash drive

I have set up a virtual machine here specifically for this tutorial. The virtual machine runs Win10. The username is Virtu and the password is 1234. I want to change my password to 12342345 without entering it. Now open the virtual machine and find that I have forgotten the password. At this time we can restart. Pull the battery when the Windows Logo is displayed (force restart). It may take several restarts until a line of text appears under the Windows Logo.

Forgot win10 boot password and no USB flash drive

After the system diagnosis is completed, this interface will be displayed:

Forgot win10 boot password and no USB flash drive

At this time, we have to select Advanced options on the right , the following interface will open:

Forgot win10 boot password and no USB flash drive

At this time, select Troubleshoot in the middle, and the following interface will be displayed:

Forgot win10 boot password and no USB flash drive

Select Advanced options below, and then choose to open the command prompt.

In the command prompt, jump to the disk where the system is located. Note that the system may not be on the C drive here. In this example, the system is on drive D. So we enter "[Drive Letter]:". Enter the dir command to confirm that it is the system disk.

Forgot win10 boot password and no USB flash drive

Then, we need to enter the "cd Windows\System32" command to jump to the [System Disk]:\Windows\System32 directory.

Next, we need to enter the following commands in sequence:

  copy sethc.exe sethc_bk.exe
  copy /y cmd.exe sethc.exe

Now we restart the computer and wait for the computer to enter the normal login interface. After entering, we need to press the Shift key 5 times. After executing this action, the command prompt window will open and enter the net user command to view all account names

net user【要更改密码的账户名】【空格】【新的密码】

This command has been modified The user's password exists.

For example, here, the command we want to enter is:

net user Virtu 12342345

At this time, the password has been changed, and you can restart the computer and log in with the new password.

Recommended tutorial: windows tutorial

The above is the detailed content of Forgot win10 boot password and no USB flash drive. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn