{"id":1451,"date":"2018-05-14T16:40:21","date_gmt":"2018-05-14T16:40:21","guid":{"rendered":"http:\/\/www.RiptideHosting.com\/blog\/?p=1451"},"modified":"2019-10-18T15:34:23","modified_gmt":"2019-10-18T15:34:23","slug":"logging-off-users-on-windows-server-2016-with-remote-desktop-services-2","status":"publish","type":"post","link":"https:\/\/www.RiptideHosting.com\/blog\/logging-off-users-on-windows-server-2016-with-remote-desktop-services-2\/","title":{"rendered":"Logging off users on Windows Server 2016 with Remote Desktop Services"},"content":{"rendered":"<p>You may want to see which users are logged on to your Windows 2016 Server at any given time and may want to logoff a user. Users can be &#8220;active&#8221; on a server or in a &#8220;disconnected&#8221; session status which means they disconnected from the server but didn\u2019t log off.\u00a0 Since disconnected sessions continue to utilize server resources, we recommend you enable a group policy to log off disconnected sessions automatically after a specific time period such as 5 minutes or X hours \u2013 easiest method is to enable a group policy to set session time limits for all users as follows:<\/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 \u2014 \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>By default, we now release Windows 2016 Servers with the disconnected session limit set at 5 minutes.\u00a0 We strongly recommend keeping this group policy at 5 minutes or change it to another time amount that you want.\u00a0 We don&#8217;t enable a default policy to log off &#8220;idle&#8221; sessions after X period of time but it is recommended that you enable this at X hours or X days.<\/p>\n<p>To see detail on each users session (how long it has been active, if disconnected or idle, etc.), you can open a command prompt and type in &#8220;quser&#8221; which will show each user with session stats.<\/p>\n<p>We haven\u2019t seen this happen very frequently, but if a user logs on to the server and the screen remains black, it is likely because the user has an existing disconnected session that has not be fully logged off. To resolve this, log into the server as an Administrator and log off the User\u2019s disconnected session.\u00a0 When the User logs in again, they should see their full desktop session without any issues.<\/p>\n<p>Steps to view and log off users:<\/p>\n<ol>\n<li>Login as Administrator or account with administrator rights<\/li>\n<li>Open Task Manager by right clicking the bottom tool bar<\/li>\n<li>Click on \u201cMore\u201d or \u201cDetail\u201d to view all tabs of Task Manager<\/li>\n<li>Go to the \u201cUsers\u201d tab which will show the users that are logged on the server<\/li>\n<li>Right click on a username and select \u201cLog Off\u201d<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1310\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2016\/08\/Task_manager_log_off_users-300x199.png\" alt=\"Task_manager_log_off_users\" width=\"300\" height=\"199\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2016\/08\/Task_manager_log_off_users-300x199.png 300w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2016\/08\/Task_manager_log_off_users.png 513w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/li>\n<\/ol>\n<p>We recommend that users be educated to log off from the server when their tasks are completed (start, click on username, select log-off or sign-off) instead of just disconnecting the session by clicking the X in the upper right corner which doesn\u2019t log the user off and only disconnects the session.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may want to see which users are logged on to your Windows 2016 Server at any given time and may want to logoff a user. Users can be &#8220;active&#8221; on a server or in a &#8220;disconnected&#8221; session status which means they disconnected from the server but didn\u2019t log off.\u00a0 Since disconnected sessions continue to [&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],"tags":[40],"class_list":["post-1451","post","type-post","status-publish","format-standard","hentry","category-all-posts","category-remote-desktop-hosting","tag-log-off-users"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1451","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=1451"}],"version-history":[{"count":1,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1451\/revisions"}],"predecessor-version":[{"id":1555,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1451\/revisions\/1555"}],"wp:attachment":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}