Create Shortcut to Lock Windows PC

Sometimes, you may be in a hurry and forgot to lock your computer. You could have important data on your computer that can be stolen or seen by someone, if you are not at your desk and computer is unlocked. You must be wondering any way to lock your computer immediately before you leave your desk. Hence; i will tell you the cool trick wherein you can create shortcut to lock windows computer with just one click, if you are running out in case of hurry. Follow the steps given below:

Create Shortcut to Lock Windows

Step 1.  Right click anywhere on Desktop screen where you can see an empty space and move your mouse cursor to “New” and select “Shortcut”.

shortcut to lock computer

Step 2. A dialog box will be prompted on your screen. Type the following code or copy that and paste it to blank dialog box. Then click Next button.

rundll32 user32.dll,LockWorkStation

create shortcut to lock windows

Step 3. Type a name for the shortcut you desired in the “Type a name for this Shortcut” textbox. Example: “Lock My PC” as mine in below image. Then, click on Finish.

create shortcut to lock computer

All done now. If you are in a hurry or running out immediately. Don’t worry, you will be able to lock your computer by double clicking on the created shortcut on your Desktop.

Assign an Icon – Lock My PC Shortcut

In following steps, you will see that how you can add an icon image to you created shortcut to lock your computer. However, it is not necessary to place an image there but if you want to look your icon stylish or good looking, you may follow the steps given below:

  1. Right-click on created shortcut (Lock My PC) and select “Properties“.
  2. Once shortcut properties will open, go to “Shortcut” Tab and select “Change Icon”.
    3. On change icon window, type or copy paste this “C:\Windows\System32\imageres.dll” and click “OK”. There are so many system icon’s will appears. Select your desired icon that you want for shortcut we have created and click “OK” again so the icon will be selected.
    4. Alright, now see, selected image icon will be there. Now press “OK” to the previous window to close the shortcut properties.

This is the final shortcut created to lock your Microsoft Windows pc immediately, by just doing double click on it. So, if you are in hurry, just double click and lock your computer without further steps.

Share This Post To Help Others!!

Leave a Reply