Policy
Configure keep-alive connection interval
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2003, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista
This policy setting allows you to enter a keep-alive interval to ensure that the session state on the RD Session Host server is consistent with the client state. After an RD Session Host server client loses the connection to an RD Session Host server, the session on the RD Session Host server might remain active instead of changing to a disconnected state, even if the client is physically disconnected from the RD Session Host server. If the client logs on to the same RD Session Host server again, a new session might be established (if the RD Session Host server is configured to allow multiple sessions), and the original session might still be active. If you enable this policy setting, you must enter a keep-alive interval. The keep-alive interval determines how often, in minutes, the server checks the session state. The range of values you can enter is 1 to 999,999. If you disable or do not configure this policy setting, a keep-alive interval is not set and the server will not check the session state.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\KeepAliveEnable | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Keep-Alive interval: ID TS_KEEP_ALIVE_INTERVAL | decimal | HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\KeepAliveInterval Type REG_DWORD | Range: 1 to 999999 |
Other policies in this category
Explore related policies at the same level.
- ComputerAllow remote start of unlisted programsWindowsServer2008
- ComputerAllow users to connect remotely by using Remote Desktop ServicesAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerAutomatic reconnectionAt least Windows Server 2003 operating systems or Windows XP Professional
- ComputerDeny logoff of an administrator logged in to the console sessionAt least Windows XP and Windows Server 2003 only
- ComputerLimit number of connectionsAt least Windows Server 2003
- ComputerRestrict Remote Desktop Services users to a single Remote Desktop Services sessionAt least Windows Server 2003
- ComputerSelect network detection on the serverAt least Windows Server 2012, Windows 8 or Windows RT
- ComputerSelect RDP transport protocolsAt least Windows Server 2012, Windows 8 or Windows RT
- UserSet rules for remote control of Remote Desktop Services user sessionsWindows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista, and Windows XP
- ComputerSet rules for remote control of Remote Desktop Services user sessionsWindows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista, and Windows XP
- ComputerSuspend user sign-in to complete app registrationAt least Windows 8 Enterprise or Windows Server 2012
- ComputerTurn off Fair Share CPU SchedulingAt least Windows Server 2008 R2