RemoteApp: end disconnected sessions except for some users

remote desktopremoteappwindows-server-2016

I have a Windows Server 2016 running some RemoteApps, and I configured it to automatically end sessions if they are disconnected for 5 minutes or if they are idle for 15 minutes, like this:

enter image description here

The problem is that even normal Remote Desktop connections are ended in this way, and I don't want this behaviour for a list of users.

  • how I can configure this only for RemoteApp and not for Remote Desktop connections?
  • how I can exclude a list of users from this behaviour?

Best Answer

The best way to do it is to set that windows as set as you want for your Remote Desktop User and Im would set a GPO that target users that use remote apps.

The setting set by my example below exist in Computer Configuration too, but it would mean all user get it on your server.

  • Create a AD group, to list all users that use Remote App.
  • Create a User GPO, targetting a user OU; with that setting set to 15, or change the settings you need.
    • User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Session Time Limits
  • Create a WMI Filter on that GPO that will make the GPO execute only on Terminal Server;
    • Select * From Win32_TerminalServiceSetting Where TerminalServerMode=1