Home

Where to control settings when closing the remote connection?

%3CLINGO-SUB%20id%3D%22lingo-sub-1205117%22%20slang%3D%22en-US%22%3EWhere%20to%20control%20settings%20when%20closing%20the%20remote%20connection%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1205117%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20a%20connection%20is%20open%20to%20the%20Remote%20Desktop%20via%20the%20web%20or%20Windows%20client%2C%20when%20you%20close%2Fdisconnect%20the%20window%2C%20does%20that%20cause%20things%20running%20in%20Windows%20to%20stop%3F%20Is%20there%20a%20way%20to%20leave%20everything%20running%20just%20the%20way%20it%20is%20so%20that%20closing%20the%20Window%20doesn't%20affect%20anything%20running%20within%20the%20session%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1205330%22%20slang%3D%22en-US%22%3ERe%3A%20Where%20to%20control%20settings%20when%20closing%20the%20remote%20connection%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1205330%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411460%22%20target%3D%22_blank%22%3E%40Jgq85%3C%2FA%3EYes%2C%20there%20is%20a%20policy%20you%20can%20set%20for%20how%20long%20the%20session%20stays%20%22alive%22%20in%20a%20disconnected%20state%20before%20it's%20ended.%20I'm%20troubleshooting%20something%20else%20at%20the%20moment%20but%20you%20should%20be%20able%20to%20search%20for%20it.%20I'll%20try%20to%20find%20it%20and%20come%20back%20if%20I%20get%20a%20second.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1206205%22%20slang%3D%22en-US%22%3ERe%3A%20Where%20to%20control%20settings%20when%20closing%20the%20remote%20connection%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1206205%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Jgq85%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20have%20a%20look%20at%20the%20following%20regedits%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22100%25%22%3E%3CSPAN%3Ereg%20add%20%22HKLM%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%20NT%5CTerminal%20Services%22%20%2Fv%20RemoteAppLogoffTimeLimit%20%2Ft%20REG_DWORD%20%2Fd%200%20%2Ff%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ereg%20add%20%22HKLM%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%20NT%5CTerminal%20Services%22%20%2Fv%20fResetBroken%20%2Ft%20REG_DWORD%20%2Fd%201%20%2Ff%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ereg%20add%20%22HKLM%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%20NT%5CTerminal%20Services%22%20%2Fv%20MaxConnectionTime%20%2Ft%20REG_DWORD%20%2Fd%2010800000%20%2Ff%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ereg%20add%20%22HKLM%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%20NT%5CTerminal%20Services%22%20%2Fv%20RemoteAppLogoffTimeLimit%20%2Ft%20REG_DWORD%20%2Fd%200%20%2Ff%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ereg%20add%20%22HKLM%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%20NT%5CTerminal%20Services%22%20%2Fv%20MaxDisconnectionTime%20%2Ft%20REG_DWORD%20%2Fd%205000%20%2Ff%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3Ereg%20add%20%22HKLM%5CSOFTWARE%5CPolicies%5CMicrosoft%5CWindows%20NT%5CTerminal%20Services%22%20%2Fv%20MaxIdleTime%20%2Ft%20REG_DWORD%20%2Fd%2010800000%20%2Ff%3C%2FSPAN%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Elink%20for%20reference.%3CBR%20%2F%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-customize-master-image%23software-preparation-and-installation%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-desktop%2Fset-up-customize-master-image%23software-preparation-and-installation%3C%2FA%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20take%20note%20that%20the%20time%20set%2C%20could%20interrupt%20your%20end-users%20%2F%20they%20get%20disconnected%20if%20the%20time%20window%20is%20too%20small%20vs%20the%20working%20hours%20of%20your%20client.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EKind%20regards%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1208109%22%20slang%3D%22en-US%22%3ERe%3A%20Where%20to%20control%20settings%20when%20closing%20the%20remote%20connection%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1208109%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F573089%22%20target%3D%22_blank%22%3E%40dwinterink%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20very%20much%20for%20reply%20and%20info%20--%20let%20me%20check%20it%20out.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1209503%22%20slang%3D%22en-US%22%3ERe%3A%20Where%20to%20control%20settings%20when%20closing%20the%20remote%20connection%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1209503%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F411460%22%20target%3D%22_blank%22%3E%40Jgq85%3C%2FA%3E%26nbsp%3Bi've%20found%20that%20limiting%20user%20to%20a%20single%20session%20and%20setting%20a%20%22sign%20out%20disconnected%20users%22%20in%20the%20group%20policy%20for%20remote%20desktop%20services%20is%20pretty%20important%20in%20our%20deployment%20--%20especially%20with%20fslogix.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

When a connection is open to the Remote Desktop via the web or Windows client, when you close/disconnect the window, does that cause things running in Windows to stop? Is there a way to leave everything running just the way it is so that closing the Window doesn't affect anything running within the session? 

4 Replies
Highlighted

@Jgq85Yes, there is a policy you can set for how long the session stays "alive" in a disconnected state before it's ended. I'm troubleshooting something else at the moment but you should be able to search for it. I'll try to find it and come back if I get a second. 

Highlighted

Hi Jgq85,

 

Please have a look at the following regedits: 

 

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v RemoteAppLogoffTimeLimit /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fResetBroken /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v MaxConnectionTime /t REG_DWORD /d 10800000 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v RemoteAppLogoffTimeLimit /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v MaxDisconnectionTime /t REG_DWORD /d 5000 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v MaxIdleTime /t REG_DWORD /d 10800000 /f

 

 

link for reference.
https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-customize-master-image#software-prepar...

Please take note that the time set, could interrupt your end-users / they get disconnected if the time window is too small vs the working hours of your client.

 

Kind regards,

 

Highlighted

@dwinterink 

Thanks very much for reply and info -- let me check it out. 

 

Regards

Highlighted

@Jgq85 i've found that limiting user to a single session and setting a "sign out disconnected users" in the group policy for remote desktop services is pretty important in our deployment -- especially with fslogix.