Configure keep-alive connection interval
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections
Supported on
At least Windows Server 2003

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.

Internal name
TS_KEEP_ALIVE
Policy ID
e34a858571fc
Elements
1

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
KeepAliveEnable
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
KeepAliveEnable
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Computer
Keep-Alive interval:
ID TS_KEEP_ALIVE_INTERVAL
decimal
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
KeepAliveInterval
Type
REG_DWORD
Range: 1 to 999999
Keep-Alive interval:
Computer · Type decimal
Registry mapping
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
KeepAliveInterval
Type
REG_DWORD
Details
Range: 1 to 999999