Forum Discussion
Idle time out GPO for Remote Desktop Services sessions not working in Windows 2019 servers
bobfenske
Thanks, I understand.
However, it is not working in 2019. It was working in 2012 and I matched the configuration in 2019.
I prefer individual settings because some users are permitted to remain in session.
Neither individual settings nor local group settings work.
tgellar I couldn't find an individual setting that works but tested the registry entry successfully on a Windows server 2019 (change double / to single to work)
the setting below logs the user out if the session is disconnected longer than the value specified.
Computer\\HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services
Value - MaxDisconnectionTime set value to (decimal) 60000 (1 minute)
The following DWORD parameters from HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services registry key corresponding to the Group Policy options described in the URL in my previous post:
- MaxDisconnectionTime
- MaxIdleTime
- MaxConnectionTime
- MaxDisconnectionTime
- RemoteAppLogoffTimeLimit
- bobfenskeSep 16, 2024Copper Contributor
bobfenske (change double / to single to work) should be (change double \ to single to work)
the registry entry is for all users and you need to restart the windows "Remote Desktop Services" service to activate the change in the registry.
- tgellarSep 16, 2024Copper ContributorThanks, will try that on Saturday...
- bobfenskeSep 16, 2024Copper Contributor
tgellar The decimal value I included does not work for large times. To set hour(s) time, use the Local Group Policy Editor (https://woshub.com/group-policy-editor-gpedit-msc-for-windows-10-home/) located in the following GPO section Computer Configuration -> Policies -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Session Time Limits. (see the link https://woshub.com/remote-desktop-session-time-limit/) The policy editor will set that registry value properly for multiple hour selection.