{"id":2535,"date":"2023-07-18T13:56:16","date_gmt":"2023-07-18T17:56:16","guid":{"rendered":"https:\/\/increasec.com\/?p=2535"},"modified":"2024-11-15T09:34:36","modified_gmt":"2024-11-15T14:34:36","slug":"terminal-server-logoff-inactive-users","status":"publish","type":"post","link":"https:\/\/increasec.com\/?p=2535","title":{"rendered":"Terminal server Logoff Inactive users"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are a few solutions, some simpler than others<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Local Policy: (simple and reliable)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">on Rdweb server start gpedit.msc<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Computer Configuration\\Administrative Templates\\Windows Components\\Remote Desktop Services\\Remote Desktop Session Host\\Session Time limits<br>Set time limit for disconnected sessions = Enable<br>choose a time like 2 hours<br>reboot<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Logon hours:  (Simple)<br>Set everyone&#8217;s login hours to 1am-11pm.   Users get ejected every evening<br>Logon hours can be set per user with the command<br>     net user                       &#8211; to get a list of local users<br>     net user username      &#8211; will give user details including Logon Hours Allowed<br>     net user Guest \/time:&#8221;Su-Sa,1am-11pm&#8221;                  &#8211; sets the Logon Hours Allowed to 1am &#8211; 11pm<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Start, run, MMC<br>File, Add Remove Snap-In, Group Policy Object, Local Computer<br>Computer Configuration, Windows Settings, Security Settings, Local Policies, Security Options, Network Security: Force Logoff when logon hours expire = ENABLE.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pros: Simple, per user, doesn&#8217;t require a domain, doesn&#8217;t require additional software<br>Cons: Based on Time-of-Day not Inactivity, Harder to configure as # of users increase, doesn&#8217;t work for online accounts<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Logoff Screensaver:  (Middling)<br>Download a 3rd party screensaver to logoff users after Inactivity<br>I used   <a href=\"https:\/\/github.com\/tpn\/windows-rktools-2003\/blob\/master\/winexit.scr\">WinExit.scr<\/a> from the Win2003esourceKit which isn&#8217;t published anymore<br>             <a href=\"https:\/\/www.autoitscript.com\/site\/autoit-tools\/logoff-screensaver\/\">AutoIT Screen Saver<\/a> also works but it requires Dot Net Framework 3.5+<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">More Info <a href=\"https:\/\/blog.encyro.com\/how-to-force-windows-10-to-lock-itself-after-inactivity-for-all-users\/\">here <\/a>if i&#8217;m not being explicit<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"417\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2023\/07\/image.png\" alt=\"\" class=\"wp-image-2538\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2023\/07\/image.png 800w, https:\/\/increasec.com\/wp-content\/uploads\/2023\/07\/image-300x156.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2023\/07\/image-768x400.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>There are a few solutions, some simpler than others Local Policy: (simple and reliable) on Rdweb server start gpedit.msc Computer Configuration\\Administrative Templates\\Windows Components\\Remote Desktop Services\\Remote Desktop Session Host\\Session Time limitsSet&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2535","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/2535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2535"}],"version-history":[{"count":10,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/2535\/revisions"}],"predecessor-version":[{"id":3318,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/2535\/revisions\/3318"}],"wp:attachment":[{"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}