How to Lock Windows 10 PC Using Command Prompt

How to Lock Windows 10 PC Using Command PromptIt is essential for your data’s security that resides in your Windows 10 PC that you lock your PC before stepping away. There are a number of ways that you can use to lock your Windows 10 PC, i.e. through the Start menu, or Command Prompt.

There is a possibility that you try to lock your PC using the Start menu in a hurry and you don’t click on the button properly. In this way, the Windows will not be locked and someone can access it while you are away. Though using the command prompt to lock your Windows 10 PC is not the quickest way but you can use it for effective results.

RELATED: How to Lock Apple Notes on Your iPhone

In this guide, we will show you how to lock your Windows 10 PC using Command Prompt.


Here’s how you can do it by entering the command on command prompt:

Start by opening Command Prompt on your PC either from the “Start” menu or by typing “cmd” in the search bar on the taskbar and opening it from the Search command prompt in your Windows 10 PC

Now that you have command prompt running, type the following command to lock your Windows 10 PC

Rundll32.exe user32.dll,LockWorkStation

run the command to lock the Windows 10 PC using command prompt

Press the “Enter” key after typing the Command.

Your PC will be locked as you press enter. To log back into your PC, you will need to enter the PIN, Password, or fingerprint.


Leave a Reply

Your email address will not be published. Required fields are marked *