Lock Your Computer
September 5th, 2008 Posted in MicrosoftWe are all professionals here – well, most of us. We all know that one should lock his or her computer before leaving their desk. Blah, blah.
The keyboard I use at work has programmable keys – I can make them do all sorts of things, like run a batch file. So, I was looking for a way to lock my computer via one of the larger buttons on my keyboard (sometimes I forget, so I’ll come back and instead of walking around my desk, I’ll try to do it over the top of the monitors). I know that you can press the Windows Logo+L, Ctrl+Alt+Del and Enter, and a number of other assorted keystrokes, but a large button seems to be the ticket. So, without further babbling, I’ll share the command to put into your batch file:
rundll32.exe user32.dll, LockWorkStation
That’s it. Pretty cool if you ask me. Now I’ll I need is a huge, red USB PANIC button to slap when I get up from my desk. That would be awesome.