Rundll32.exe user32.dll,LockWorkStationĪs soon as you complete the above command, the computer will be locked. Of course, you can also use the Ctrl + V or Ctrl + Shift + V. To do that, copy the below command, paste it in the Command Prompt window and press the “Enter” button.Ī quick tip: to paste the command in the Command Prompt window, simply right-click in the window. After opening the Command Prompt window, you can execute the command to lock the computer. Click on it to open the Command Prompt window.Ģ. This will show the Command Prompt result at the top. You can do that by pressing the “Windows logo” key on your keyboard. To use a CMD command to lock a Windows computer, follow the steps listed below.ġ. The good thing is, the command to lock the computer is pretty simple and easy to execute.įollow the steps below to learn how to use a CMD command to lock the computer via the Command Prompt. After all, it is tough to simulate keystrokes in a script or scheduled task. For example, if you are creating a custom command-line script or to lock the PC on schedule, you have to execute the lock PC command. But, knowing how to do it is very helpful in a lot of ways. Sure, using the Command Prompt is not the most intuitive or easiest way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |