I remote from my home PC (Windows 10) to my work computer (Windows 7) and every time I disconnect my remote connection (or just close it), after some time (around 1 hr) the work Windows session logs out and next time I remote or when I get to work the next day, I find my session logged out. All my open software closes, of course.
We tried the following solution:
But nothing has been solved. It seems to be a timeout issue after remote disconnection, but I cannot find the config for this.
Any known solution for this?
Best Answer
On the Windows 7 server :
gpedit.msc
Computer Configuration --> Administrative Templates --> Windows Components --> Remote Desktop Services --> Remote Desktop Session Host --> Session Time Limits.
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
and ensure that
MaxDisconnectionTime
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.)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".