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:
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:
Follow the Author of this article :