How to unlock a computer without a password

Updated July 20, 2017

If you have found yourself locked out of your computer for any reason, the following simple steps will allow you to gain access to your system and to assign a new password. These instructions unlock the computer and will let you see the user accounts that are on your system and you can change or delete them once you enter the system. These instructions are for use on Windows OS (operating systems).

Select the "Start" icon in the lower left corner of your computer screen

Type the word "run" in the window that appears. A second pop-up window will appear; type in the letters "cmd," then select "OK." This will bring up the black DOS command screen.

Type next to the administrator account the following command: net(space)user(space) the username(i.e. johnadams) *. After typing this command, hit "ENTER" on your keyboard.

Type in a new password in the command screen prompt that ask you to type a password. Type the new password again once you are asked to confirm.

Type the word "Exit." This will bring you back to your login screen. Enter the new password that you selected.


These steps are useful for those emergency times when you must get into your computer.


This procedure is not to promote unauthorised hacking of a computer.

Things You'll Need

  • Computer
Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Regina Robinson has over 15 years in the media industry working on short films and documentary subjects as well as playwriting. The subjects include women issues, race issues and societal injustices. She has her scriptwriting degree. After creating medical and educational commercial videos for TV360 it showed her how the Internet can really bring information to the public without limitations.