{"id":204,"date":"2008-07-17T19:07:00","date_gmt":"2008-07-17T19:07:00","guid":{"rendered":"http:\/\/blog.agm.me.uk\/blog\/2008\/07\/lock-console.php"},"modified":"2008-07-17T19:07:00","modified_gmt":"2008-07-17T19:07:00","slug":"lock-console","status":"publish","type":"post","link":"https:\/\/blog.agm.me.uk\/blog\/2008\/07\/lock-console.php","title":{"rendered":"Lock Console"},"content":{"rendered":"<p>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.<\/p>\n<p>The latter can be achieved by running <a href=\"http:\/\/wiki.ljackson.us\/Control_Userpasswords2\">&#8220;control userpasswords2&#8221;<\/a> and getting Windows to log in automatically. Rather than have the console unlocked for a wile after a reboot I tend to run &#8220;rundll32.exe user32.dll, LockWorkStation&#8221;, and that is best <a href=\"http:\/\/support.microsoft.com\/kb\/179365\">done in the registry<\/a> for security.<\/p>\n<p>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.<\/p>\n<p>Please feel free to download and use it, but please also do <a href=\"http:\/\/www.agm.me.uk\/contact\">let me know<\/a> if you find it useful. The app can be downloaded here&#8230; <a href=\"http:\/\/blog.agm.me.uk\/blog\/uploaded_files\/LockConsole.zip\">LockConsole.zip<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4t60H-3i","_links":{"self":[{"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=204"}],"version-history":[{"count":1,"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions"}],"predecessor-version":[{"id":1380,"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/posts\/204\/revisions\/1380"}],"wp:attachment":[{"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.agm.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}