On the Windows 7 server :
- Start
gpedit.msc
- Browse to :
Computer Configuration --> Administrative Templates --> Windows Components --> Remote Desktop Services --> Remote Desktop Session Host --> Session Time Limits. - Enable "Set time limit for disconnected sessions" and set it to Never.
- Use regedit to go to the key
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
and ensure thatMaxDisconnectionTime
is set for the amount of time you want to set as the time limit in milliseconds (12 hours = 43200000). If it does not exist, create it as New DWORD (32-bit). (more info.) - Reboot.
- Verify after reboot that the above registry setting has not changed. (In a domain, the domain settings may override local ones.)
If this doesn't work and your server is in a domain, have the IT people check in your OU the setting of "Terminate disconnected session".