Method 1: Bypass Windows password with Command Prompt

 Safe Mode is a diagnostic mode of a computer Operating System (OS), a special way for Windows to load when a system-critical problem interfering with normal operation of Windows. If you are not able to boot your computer in normal mode or supposed your notebook is infected with Trojans or malware, you are able to get rid of them with Safe Mode. Furthermore, it is easier and safer to bypass Windows password in Safe Mode when lost or forgot Windows password.

Take Windows 7 for example: there are 3 different types of safe mode: Safe Mode, Safe Mode with Networking, and Safe Mode with Command Prompt. Below is a guide on how to bypass Windows 7 password with Safe Mode with Command Prompt, which allows you to reset Windows password with command line. Detailed steps are as follow:
Step 1: Boot or reboot your Windows 7 computer.
Step 2: Press F8 to enter Advanced Boot Options before the Windows 7 loading screen appears.
Step 3: Choose Safe Mode with Command Prompt in the coming screen, and then Press Enter.
Step 4: Wait for Windows 7 files to load until Windows login screen comes up.
Step 5: Log in with an administrator account until you see login screen.
Step 6: A Command Prompt appears. Type net user in the Command Prompt and then hit Enter. All Windows user account names will be listed for you.
Step 7: Type net user Nareshp  K@thamandu321 and hit Enter. (Here this is  the user  Nareshp to be reset and next is desired password for the same user )
Step 8: The new password has been successfully reset when the command is completed successfully.
Step 9: Log on your PC with the new password.
Note: 'Nareshp' is your locked Windows user account name. And 'K@thamandu321' means the new password you want to reset for the locked account.
Whenever you need to log on to Safe Mode, an administrator account password is necessary. So it is highly recommended you to write Windows password down and store it or creating a Windows password recovery disk before Windows password lost.