miércoles, 6 de noviembre de 2013

Reduce Timeouts by enabling Keep Alive Heart Beat (RDS-RDP) / Keep Alive heart beat reduce las desconexiones por timeout en sesiones the RDS-RDP

HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\Control\Terminal Server and created with a Value of 1 (DWORD 32bit)

If your TS environment is accessed by remote users connecting from the Internet, specially from high latency WAN connections like cellular data and satellite, is a good idea to turn on "Keep-alives"on your server.  This will help prevent users from being disconnected due to inactivity timeouts on routers.

To do this:


  1. Start--Run--gpedit.msc
  2. In the left pane, navigate to Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Session Host\Connections
  3. In the right pane, double-click Configure keep-alive connection interval (I used 1 as the value)
  4. Select Enabled, then click OK
  5. Apply the gpupdate /force or Restart the server for the change to take effect


This not always helps as Bryan Q (a colleague)  found that for some reason not all keepalives reach their destination in our environment, still we noticed considerable improvement in disconnects, most likely the missing packets are related to network issues, still I will investigate a little more and share my findings.