To use this trick, follow the instructions given below:-
- Right Click on an empty space on the Desktop, point to New and click on Shortcut.
- In the dialog box that pops up, type the following code without quotes in the Type the location of the item.
rundll32 user32.dll,LockWorkStation3. Click on Next and type a name for the shortcut in the Type a name for this
4. Click on Finish.
Now you will be able to lock your computer by double clicking on the created shortcut. You can also add this shortcut to the Quick Launch toolbar to lock your system with only a single click.