Terminal Services Remote Desktop automatically kills session which are not actively used for some times. This sometimes annoys me, since some connections remain open and used all day (like development server environments. It's possible to enable a keep alive setting on the server by editing the Windows registry of the server.
The simple steps:
- Go into the registry - HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server,
- Create/edit the DWORD value KeepAliveEnable.
- Set it to 1.
- This should turn on Keep Alive and send a heartbeat with the system. Done!
Disclaimer note: please make sure what you are doing & make backups.