Lock Console

July 17th, 2008 by Alistair MacDonald Leave a reply »

There has been many times I have wanted an application to lock my Windows console. Originally I wanted to add it to a hot key on my keyboard, and more recently I have needed to use it as a nasty fix to automatically restart some software post reboot that needs a user to log in.

The latter can be achieved by running “control userpasswords2” and getting Windows to log in automatically. Rather than have the console unlocked for a wile after a reboot I tend to run “rundll32.exe user32.dll, LockWorkStation”, and that is best done in the registry for security.

So there is a solution, but I still prefer to have an application to hand, and today I finally got round to coding it. It took a whole few minutes and is a whopping 16k. Given time I could have made it fare more compact, but decided it was not worth the effort.

Please feel free to download and use it, but please also do let me know if you find it useful. The app can be downloaded here… LockConsole.zip.

i love Quidco GreenWhite

Leave a Reply