This tutorial will show you how to create a shortcut to lock your computer. You can Pin to Taskbar or Pin to Start Menu the shortcut to lock computer, or move where you like for easy use.
Right click anywhere on the Windows 7 desktop, hover over New > click Shortcut :

In the Shortcut Window, type the the following as location of the item:
---
rundll32.exe user32.dll,LockWorkStation
and click on Next :

Name the shortcut as “Lock Computer” or any thing you like from the next window and click Finish to close the Wizard.
A new shortcut to lock your computer will appear, but it will look bad as it has no default icon. To customize its icon, right click, select Properties, then click Change Icon button. The icons in the folder C: > Windows > explorer.exe will be displayed. Browse to C: > Windows > System32 > shell32.dll to get more icons, select the one you wish, click OK and then Apply and OK :

Shortcut with a nice lock icon will now appear on your Windows 7 desktop:

Right click over it and click “Pin to taskbar” or “Pin to Start menu” (if you wish):

You will get the Lock Computer on your Windows 7 taskbar:

Here’s what we’ve got for you which might like :
Additionally, performing a search on this website can help you. Also, we have YouTube Videos.
Take The Conversation Further ...
We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!
If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.
Contact Us
Or you could just press windowskey+L…