{"id":1121,"date":"2015-10-09T12:19:26","date_gmt":"2015-10-09T18:19:26","guid":{"rendered":"http:\/\/www.RiptideHosting.com\/blog\/?p=1121"},"modified":"2019-10-18T15:33:44","modified_gmt":"2019-10-18T15:33:44","slug":"how-to-set-time-limit-for-disconnected-sessions-windows-server-2012r2","status":"publish","type":"post","link":"https:\/\/www.RiptideHosting.com\/blog\/how-to-set-time-limit-for-disconnected-sessions-windows-server-2012r2\/","title":{"rendered":"How to set time limit for disconnected sessions Windows Server 2012R2"},"content":{"rendered":"<p>By default, Remote Desktop Services allows users to disconnect from a remote session without logging off the server and ending the session. When a session is in a disconnected state, running programs are kept active even though the user is no longer actively connected. <strong>A disconnected session continues to consume server resources <\/strong>and we recommend that you set policies to end disconnected session after a period of time. Sessions are ended\/closed out if the user Logs Off from the server (start -&gt; logoff) but are not ended if the user simply clicks the X in the upper corner to close the RDP window.<\/p>\n<p>You can limit the amount of time that active, disconnected, and idle sessions remain on the server. Two methods are described below:<\/p>\n<p><strong>#1 &#8212; User Properties to set session time limits per user:<\/strong><\/p>\n<p>In each user\u2019s properties window, under sessions tab, you can change the default of \u201cend a disconnected session\u201d from NEVER to X hours\/days as well as change the other settings.<\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/10\/User_Properties_Picture.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1129\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/10\/User_Properties_Picture-242x300.png\" alt=\"User_Properties_Picture\" width=\"242\" height=\"300\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2015\/10\/User_Properties_Picture-242x300.png 242w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2015\/10\/User_Properties_Picture.png 395w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/a><\/p>\n<p><strong>#2 &#8212; Group Policy to set session time limits for all users:<\/strong><\/p>\n<ol>\n<li>Cmd prompt, gpedit.msc<\/li>\n<li>Computer Configuration, Admin Templates, Windows Components, Remote Desktop Services, Remote Desktop Session Host, Session Time Limits\n<ol>\n<li>Enable appropriate group policies and modify as needed<\/li>\n<li>We recommend setting this one because it will prevent disconnected sessions from consuming server resources &#8212; \u201cSet time limit for disconnect sessions\u201d<\/li>\n<\/ol>\n<\/li>\n<li>After modifying group policies, you can force an update without rebooting by typing \u201cgpupdate \/force\u201d at cmd prompt<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>#3 &#8212; If Windows Server 2008R2, you can modify these settings in RD Session Host Configuration too<\/strong><\/p>\n<p>To configure session settings on a windows 2008R2 server with Remote Desktop Services role installed, go to start -&gt; administrative tools -&gt; remote desktop services -&gt; RD Session Host Configuration. Then right click RDP-Tcp properties, Sessions tab, and enter value to end a disconnect session after a specific period of time, end an idle session, etc. (tsconfig.msc also opens the RD Session Host Configuration window). More details can be found here: <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc754272.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/technet.microsoft.com\/en-us\/library\/cc754272.aspx<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, Remote Desktop Services allows users to disconnect from a remote session without logging off the server and ending the session. When a session is in a disconnected state, running programs are kept active even though the user is no longer actively connected. A disconnected session continues to consume server resources and we recommend [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7,12,13],"tags":[59,69,79,80],"class_list":["post-1121","post","type-post","status-publish","format-standard","hentry","category-all-posts","category-remote-desktop-hosting","category-windows-2008r2","category-windows-2012-r2","tag-server-hosting","tag-terminal-server-hosting","tag-windows-server-2008r2","tag-windows-server-2012r2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1121"}],"version-history":[{"count":1,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1121\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1121\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}