If you are working in public places or official places where other people can access your desktop, so it’s like there are things on your system you would rather have kept confidential. So don’t forget to lock your desktop when you leave the computer as it’s essential task to keep your things private from others.Here’s some tips for a desktop shortcut that will lock your computer in two easy clicks:
Right-click anywhere on your desktop, Select New > Shortcut. Then type,
Click next and then give your shortcut an appropriate name , and hit Finish. That’s about all there is to it. Now you will be able to lock your Computer by double clicking on the created Shortcut.
Another ways to Lock your desktop –
If the Welcome screen is enabled, the computer can also be locked if you press CTRL+ALT+DELETE (to open Task Manager), and then click Lock Computer or click Switch User on the Shut Down menu. Also if you are windows user then you can lock your computer anytime using Windows Key + L to lock instantly.