Credit: Brian Trexler
"I think I found the incredibly annoying setting that logs you out (and closes your active work) when disconnecting a Remote Desktop Session on Windows 7! I’ve been determined to slay this dragon.
I’m going to keep an eye on this to ensure it sticks and never logs me out. Let me know what you guys find.
Here is the maximum setting for “MaxDisconnectionTime”…"
Back up the registry, navigate to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\
Change (decimal) value for MaxDisconnectionTime to 4294967295