You sit down on the table and try to log into your Windows computer, but can’t because you forgot the password. Technically you cannot change the password without sign into Windows 10. Although you can easily reset the forgotten Windows 10 password, you have to dive into Windows settings.
To reset the forgotten Windows 10 password, you will need a Windows 10 Bootable DVD or Bootable PenDrive. We use a bootable media drive to enter recovery Mode. If you don’t have a bootable media drive, still, you will be able to boot Windows 10 in recovery mode.
We’re neither going to reinstall Windows nor reset Windows. We only use a bootable drive to access the command prompt through the recovery mode. So, Let’s go and complete the task.
Reset Forgotten Windows 10 password
The following method is only applicable to the local admin user account. You can’t reset the Microsoft user account password using this way.
- First of all, turn on your PC and don’t try to login using a random or wrong password.
- Next, Insert the Bootable Drive (DVD or Pendrive) into your PC.
- Restart your PC.
- When the PC starts and the first screen displays, immediately press the ESC key to open the startup menu. (The key mapping may be different on your PC)
- Select the Boot Device Options or Menu from the Startup Menu.
- Select the Windows bootable drive and then boot your PC from.
- Once the system boots with Windows media drive, then start the Windows setup and then click the Next.
- You get Repair your Computer option, click that.
- Then, open the Troubleshoot Menu (Reset your PC and see the advanced option).
- Select the Command Prompt (Use the command prompt for advanced troubleshooting).
- In the command prompt, type the following commands. (C is for navigate the C drive where Windows is installed, and dir is used to list the directories)
Command: c: Command: dir
Note: We use this command to find the Windows installation drive; however, generally, Windows is installed in the C drive. Suppose you didn’t get the correct drive, then you can navigate to other drives by changing the drive letter, for example, use “d:” to navigate to D drive.
- Next, navigate to Windows > System32, then type the following command, and then hit the enter button.
Command: cd Windows/system32
- Next, run the command “dir osk.exe” to check whether osk.exe exists.
Command: dir osk.exe
- We will back up this file, to do this enter the following command.
Command: ren osk.exe osk.exe_bak
- To check the backup file run the following command.
Command: dir osk*
- Now, we will copy the cmd.exe into the osk.exe, to do this type the following command, and then hit the enter button.
Command: copy cmd.exe osk.exe
- To check the new osk.exe, run the following command.
Command: dir osk*
- Enter the command “Exit” to exit the Command Prompt.
- Restart your PC now.
- Once you’re on the Login screen, select the Ease of Access and click the On-Screen keyboard, it will open Command Prompt instead.
- Through Command Prompt, we can easily reset the user account password.
- Enter the following command and then hit the enter button, replace the username with your admin username.
Command: net user username *
- Now, enter the new password and confirm the password. The Password is not visible, So type the password carefully and keep in your mind.
- If you want to know how many user accounts are on the computer, use the following command to list all users.
Command: net user
- Enter the “Exit” command to exit the command prompt.
- Now you can log into your computer with a new password.
Note: If you want to use the On-Screen Keyboard as before, then run the following commands in the command prompt.
- First Command = c:
- Second Command = cd windows\System32
- Third Command = del osk.exe
- Fourth Command = ren osk.exe_back osk.exe
- Fifth Command = Exit
You can use your On-Screen keyboard as before
Related article ⇒ How to Disable Fast user switching
I hope you could successfully reset the forgotten Windows 10 password. Using this method, you can only reset the local user account password, but cannot reset the Microsoft user account password.
To reset the Microsoft user account password, you should go to Microsoft.com, and then reset your account password. Once you’ve reset your password, then open your computer and Login using the new password, but make sure you have an internet connection.