How to Create a Custom Desktop Shortcut To Lock Your PC?


If you are new here, Subscribe to Full Feeds or by Email and receive free daily updates on Tips, Tricks and Tweaks..


RJ made a comment on the post “How to lock your PC automatically while you step out?“, saying that you can also create custom desktop shortcut to lock the PC while you step out. This desktop shortcut will be handy for people who are not used to keyboard shortcut and all you have to do to lock your PC is double click the shortcut while you step out (although you can use Windows Key + L to lock your PC).

First, How to Create a Custom Desktop Shortcut?
Step 1: On the Desktop, Right Click and hover over New and Click Shortcut.

Create Desktop Shortcut


Step 2: Give the execution code in the ‘Type of the location of the item
Step 3: Give a name for the shortcut in the next screen and click ok.
Step 4: A shortcut will be created in the desktop which on double clicking will execute the command which you have given earlier.

Now, How to Create a Custom Desktop Shortcut to Lock the PC?
After Step 1, give the following line as the target for shortcut
%windir%\system32\rundll32.exe user32.dll,LockWorkStation

Create Shortcut

Give a name of your preference for the Lock PC shortcut.
Click OK and you are done!

The properties of the custom desktop shortcut to lock PC should like this.

Lock PC Properties

Also read how to create a custom keyboard shortcut?


Related Posts:
  • How to create custom keyboard shortcut to open any application?
  • How to Minimize and Maximize Windows Using Keyboard Shortcuts in XP and Vista?
  • How to lock your PC automatically while you step out?
  • How to Create a Keyboard Shortcut to Open any Folder in Vista?
  • LyteByte Guest Post at HowToGeek: Create Keyboard Shortcut For Hidden Desktop Icons and Files


  • Enjoyed this post? Subscribe to Full Feeds or by Email and receive free daily updates on Tips, Tricks and Tweaks.


    16 Responses to “How to Create a Custom Desktop Shortcut To Lock Your PC?”


    1. 1 kuanhoong

      Now this is a good shortcut :-) Thanks for sharing!

    2. 2 Glock

      gr8 post, thnx alot!

    3. 3 RJ

      you explained it much better then I did thanks

    4. 4 Mr.Byte

      @RJ, Thanks RJ for the lead…

    5. 5 ReviewSaurus

      Nice and simple tip. But, I really think that I’ll stick with pressing CTRL ALT DEL and then the space bar. I’ll do it quickly then the shortcut :)

    6. 6 Ken Xu

      Agree with Mayank and but this is a great post! ;p

    7. 7 Randy

      Or just windows key ‘L’

    8. 8 Mr.Byte

      @Randy, I also use ‘Windows Key L’ always but I though this might help people who don’t like to use keyboard shortcuts.

    9. 9 praveen

      This is a good shortcut Thankyou

    10. 10 pottas

      First, How to Create a Custom Desktop Shortcut? this is not neccesary.Just right on any folder in my computer and select create shortcut on desktop.

    11. 11 Dr. Suhas Rao

      How to create a shortcut to shutdown Navigate to C:\windows\system32\shutdown.exe Right click and send to desktop (create
      Shortcut.

    12. 12 JonaThink

      Ummmmmmmmm
      wow like this Review Saurus guy said
      i’ rather Ctrl Alt Del
      then do all tht
      sooooooooooo
      WOoooooooooooooooooooooooooooooooOooooooooooooooooooooooooOW

    1. 1 How to lock your PC automatically while you step out?
    2. 2 How to create custom keyboard shortcut to open any application?
    3. 3 Cool Websites and Tips (makeuseof extra #72) » MakeUseOf.com
    4. 4 Create Keyboard Shortcut to Open any Folder

    Leave a Reply




    LyteByte Full Feed

    About Lyte Byte & Me

    Bringing you Tips, Tutorials, and Tweaks on Computers, Internet, Operating System, Windows Vista, Office Applications, Web 2.0, Gadgets, Science, and Technology.
    Its a byte of technology, did you have your byte today?


    subscribe through Email