Forum Discussion
Idle time out GPO for Remote Desktop Services sessions not working in Windows 2019 servers
kpr208 https://woshub.com/remote-desktop-session-time-limit/
In Windows Server 2022/2019/2016/2012R2, you can set RDP session timeouts using Group Policies. You can do it either in the https://woshub.com/group-policy-active-directory/ (gpmc.msc) or in the Local Group Policy Editor (https://woshub.com/group-policy-editor-gpedit-msc-for-windows-10-home/) on a specific RDS host (or on a desktop version of https://woshub.com/how-to-allow-multiple-rdp-sessions-in-windows-10/).
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.
- bobfenskeSep 16, 2024Copper Contributor
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...