Random TS Sessions disconnected
http://www.sjogrens.nu/?p=81
Thanks Daniel.
Getting disconnected from your RDP session?
Posted on February 29, 2012 by Daniel
Are you using remote desktop against a Windows 7 machine and gets randomly disconnected?
Many organizations are enabling Remote Desktop through Group Policy. There is a little problem with this approach.
Normally, Remote Desktop is turned off by default, you can see the default setting in this registry key:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] “fDenyTSConnections”=dword:00000001
When you enable the Group Policy Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Allow users to connect remotely using Terminal Services, it will create the registry key fDenyTSConnections under [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]
But everytime your computer does a gpupdate manually or in the background, it will erase the key [HKEY_LOCAL_MACHINE\Software\Policies] and populate it with new values from your policies. During this period when the key is deleted, Remote Desktop is off and might disconnect your session!
So instead of using Group Policies to enable Remote Desktop, use the following Registry key:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] “fDenyTSConnections”=dword:00000000
Thanks Daniel.
Getting disconnected from your RDP session?
Posted on February 29, 2012 by Daniel
Are you using remote desktop against a Windows 7 machine and gets randomly disconnected?
Many organizations are enabling Remote Desktop through Group Policy. There is a little problem with this approach.
Normally, Remote Desktop is turned off by default, you can see the default setting in this registry key:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] “fDenyTSConnections”=dword:00000001
When you enable the Group Policy Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections > Allow users to connect remotely using Terminal Services, it will create the registry key fDenyTSConnections under [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Terminal Services]
But everytime your computer does a gpupdate manually or in the background, it will erase the key [HKEY_LOCAL_MACHINE\Software\Policies] and populate it with new values from your policies. During this period when the key is deleted, Remote Desktop is off and might disconnect your session!
So instead of using Group Policies to enable Remote Desktop, use the following Registry key:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server] “fDenyTSConnections”=dword:00000000
Comments
Post a Comment