Forum Discussion
Forgot Windows 10 password and can't login in my laptop
You can use the built-in command prompt utility to reset Windows 10 password without data loss when you forgot Windows 10 password on any PC or laptop.
Forgot Windows 10 Password with Command Prompt Solution
Step 1: Make a Windows 10 bootable USB and boot the locked computer from it.
Step 2: On the Windows Setup screen, select your language and click Next. Then, click "Repair your computer" in the bottom-left corner.
Step 3: Troubleshoot > Advanced Options: Go to Troubleshoot > Advanced options > Command Prompt.
Step 4: In the Command Prompt window, type the following command and press Enter. This temporarily replaces the "Utility Manager" on the login screen with Command Prompt.
copy c:\windows\system32\utilman.exe c:\
Then, type this command and press Enter:
copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe
When asked if you want to overwrite, type Yes and press Enter.
Step 5: Close the command prompt and restart Windows 10. On the login screen, click the "Ease of Access" icon (the little person in the bottom-right corner). This will now open a Command Prompt window with system privileges.
Step 6: Find the user name and reset Windows 10 password with command prompt.
net user
net user YourUsername NewPassword
Step 7: Close the Command Prompt. You can now log in to the account using the new password you just set.