Lock your Windows PC with Command Prompt

See how you can use the Command Prompt to lock your Windows PC.

lock screen windows

One of the first rules of safety, especially if you're at work, is to always lock your computer before you leave.

There are many ways to do this, some easy and some quite complicated, but today we will learn how it can be done using the Command Prompt.

Faster way
For the completeness of the article, the simplest way is to press the keys simultaneously Win + L. Second faster way is to press the keys Ctrl + Alt + Delete and select “Lock”.

Directly with CMD
But for those who want to play with Cmd, then do the following:

Open the Command Prompt on your computer and type the command
Rundll32.exe user32.dll,LockWorkStation

lock 1

Once you press Enter, the you will be locked and you will see your familiar screen requiring him you.

 

Alternatively with CMD
Alternatively you could create a standing command on the surface with a beautiful icon that locks your computer whenever you press it.

  • On top of you press Right on your mouse, then Create, then Shortcut.

  • In the field that says "Enter the location of the item" type C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation and click the Next button.

  • lock 3
  • Type a name for your shortcut, for example “Lock” and click the “Done” button.

  • Double clicking on it will lock your computer. If you want you can change its icon to make it more beautiful.

lock 4

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.
lock,windows,lock,screen

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).