西西河

主题:【求助】Windows 远程桌面总是被断开连接 -- leqian

共:💬17 🌺9 新:
全看分页树展 · 主题 跟帖
家园 这个似乎比较详细

SYMPTOMS

When a user remote controls another user's session using Remote Desktop Services Manager or Terminal Services Manager on a Windows Server 2008-based computer, and then stops remote controlling, one or both sessions are disconnected with the following error:

Remote Desktop Disconnected

Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again.

CAUSE

This problem occurs if Remote Desktop Connection Client version 6.0.6001 or 6.0.6002 is used with the highest RDP Compression setting. Windows Server 2008 SP1/SP2 defaults to a lower RDP Compression setting, and thus will only exhibit the above symptoms if the setting has been changed to "Optimized to use less network bandwidth", which is the maximum. Windows Server 2008 R2 defaults to the maximum RDP Compression setting.

WORKAROUND

Change the RDP Compression setting on the server to "Balances memory and network bandwidth" (recommended) or "Optimized to use less memory" using Group Policy. If using Windows Server 2008 R2 you may also choose "Do not use an RDP compression algorithm". An alternative workaround is to use a different Remote Desktop Connection Client version than those mentioned above, however, this may not be practical. Below are instructions for making the change to the local group policy; if preferred you can use a domain group policy instead.

Windows Server 2008 R2

1. Logon to the Remote Desktop Services Session Host computer as an administrator

2. Start--Run gpedit.msc

3. In the left pane, under Computer Configuration, navigate to following:

Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

4. In the right pane, double-click on Set compression algorithm for RDP data

5. Select Enabled, and choose Balances memory and network bandwidth

6. Click OK to save the change

Windows Server 2008 (SP1 or SP2)

1. Logon to the Terminal Services computer as an administrator

2. Start--Run gpedit.msc, click Continue if prompted by UAC

3. In the left pane, under Computer Configuration, navigate to following:

Administrative Templates\Windows Components\Terminal Services\Terminal Server\Remote Session Environment

4. In the right pane, double-click on Set compression algorithm for RDP data

5. Select Enabled, and choose Balances memory and network bandwidth

6. Click OK to save the change

STEPS TO REPRODUCE

Windows Server 2008 R2 x64

1. Install 2008 R2 Standard (Full Installation) x64 from DVD using defaults

2. Upon first logon, scroll down the initial configuration tasks window and click on Enable Remote Desktop

3. Choose Allow connections from computers running any version of Remote Desktop (less secure), click OK

4. Open up Computer Management and create a test user, make them a member of the Remote Desktop Users group, on the Remote Control tab, uncheck "Require user's permission"

5. Connect from a PC using Remote Desktop Client version 6.0.6001 or 6.0.6002 to the server, logon as administrator

6. Connect from a PC using Remote Desktop Client version 6.0.6001 or 6.0.6002 to the server, logon as the test user

7. In the administrator's session, open up Remote Desktop Services Manager, right-click on the test user and choose Remote Control, click OK

8. After you are viewing the test user's desktop, press Ctrl-Tab to end the Remote Control

Windows Server 2008 x64

1. Install 2008 Standard (Full Installation) x64 from DVD using defaults

2. Upon first logon, scroll down the initial configuration tasks window and click on Enable Remote Desktop

3. Choose Allow connections from computers running any version of Remote Desktop (less secure), click OK

4. Open up Computer Management and create a test user, make them a member of the Remote Desktop Users group, on the Remote Control tab, uncheck "Require user's permission"

5. Change RDP Compression algorithm to "Optimized to use less network bandwidth" using instructions above

6. Connect from a PC using Remote Desktop Client version 6.0.6001 or 6.0.6002 to the server, logon as administrator

7. Connect from a PC using Remote Desktop Client version 6.0.6001 or 6.0.6002 to the server, logon as the test user

8. In the administrator's session, open up Terminal Services Manager, right-click on the test user and choose Remote Control, click OK

9. After you are viewing the test user's desktop, press Ctrl-Tab to end the Remote Control

NOTE: This problem may occur when connecting to a Windows Vista or Windows 7 host under similar conditions. I have not tested this theory, however.

As always I welcome your comments/questions/corrections/suggestions/etc.

Thank you for reading.

全看分页树展 · 主题 跟帖


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河