How To Lock Your PC With Mouse We are here to learn about how to lock your PC with mouse. Just follow these simple steps to do this- 1- Firstly Right click on your desktop and make new shortcut 2- Now you will see the browse block. Fill this in this block- --> rundll32 user32.dll,LockWorkStation --> 3-Now give any name to the shortcut you want and hit Enter.