I've been trying to configure a GPO to kill inactive sessions on a Windows Server 2012 R2 terminal server, but I can't seem to be able to get it done.
I went to Computer Settings → Policies → Admin templates → Windows Components → Remote Desktop Services → RD Session Host → Session Time Limits and configured:
- Set time limit for domain controller sessions → 30 minutes
- Set time limit for active but idle sessions → 30 minutes
- End session when time limits are reached → Enabled
I've checked and made sure the policy is applying to the server in question by running gpresult /r /scope:computer
.
The problem is that, after 30 minutes, the user sessions that are inactive are still not killed, and they sit there in a disconnected state using memory resources that they shouldn't.
Am I missing something?