Description of the Automatic Reconnection Feature in Windows Server 2003 and Windows XP SP1

IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows Registry

Summary

This article describes the Automatic Reconnection feature for terminal services in Windows .Server 2003.

More Information

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Windows Server 2003 includes the Automatic Reconnection feature for terminal services. You can use this feature to automatically reconnect to the same session without re-typing logon credentials if the session is disconnected because of dropped packets on the network or a network error. By default, a maximum of twenty reconnection attempts are made at five-second intervals. You can turn on the Automatic Reconnection feature in Windows Server 2003 either in the Remote Desktop Connection tool or through a group policy.

By default, the Automatic Reconnection feature is turned on in Windows XP Service Pack 1 (SP1). You can turn the Automatic Reconnection feature off by editing the registry.

When a client loses network connectivity, Automatic Reconnection informs you that it is trying to reconnect to the broken session. The session appears in grayscale, and you receive the following reconnecting message:
The connection has been lost. Attempting to reconnect you to your session.
Automatic Reconnection then counts down the remaining reconnection attempts, starting at 20. After your connection is re-established, the Reconnecting window disappears, and the session returns to an active state. If your connection is not re-established, the session closes.

In Windows XP SP1, the following behaviors indicate a loss of network connectivity:
  • Your session appears in a grayscale.
  • You receive a small blinking square icon with a computer network connection marked with a red X.
Although you do not see any countdown, you still have 20 reconnection attempts. After your connection is re-established, the session returns to an active state. If your connection is not re-established, the session closes.

How to Turn on Automatic Reconnection in Windows Server 2003

  1. Start the Remote Desktop Connection tool (Mstsc.exe).
  2. Click the Experience tab.
  3. Make sure that the for Reconnect if Connection is Dropped option is selected.
  4. Set any other options you want to use, and then click
    Connect to start the session.

How to Turn on Automatic Reconnection by Using a Group Policy

  1. Start the Microsoft Management Console (MMC), and then add the Group Policy snap-in.
  2. Click Local Computer Policy, click
    Computer Configuration, and then click Administrative Templates.
  3. Open Windows Components, open
    Terminal Services, double-click the Automatic Reconnection object in the right pane, and then click either
    Enable, Disable, or Not Configure.
  4. If the status is set to Enable, Automatic Reconnection is attempted for all clients that are running Remote Desktop Connection whenever their network connection is lost. If the status is set to Disable, Automatic Reconnection of clients is turned off. If the status is set to Not Configured, Automatic Reconnection is not specified at the group policy level. By default, Automatic Reconnection is turned on in the operating system.

How to Configure Automatic Reconnection in Windows XP SP1

  1. By default, Automatic Reconnection is turned on in Windows XP SP1.
  2. Start Registry Editor, and then locate the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
  3. Add a new DWORD value that is named
    fDisableAutoReconnect to this registry key.
  4. Set the fDisableAutoReconnect value data to either 1 or 0. A value of 1 means that Automatic Reconnection is turned off. A value of 0 means that Automatic Reconnection is turned on.

How to Configure Automatic Reconnection in the Default.rdp File

The background file that contains the configuration settings for the Remote Desktop setting is the Default.rdp file in the My Documents folder. You can configure this file to allow or disallow automatic reconnection:
  1. Start Notepad, and then open Default.rdp.
  2. Add the following option to the list, where 1 is enable (0 is disable):
    autoreconnection enabled:i:1
    Note You can modify the default number of reconnection attempts by adding the following value:
    AutoReconnect Max Retries:i:number
The Windows Server 2003 version of the Remote Desktop client has an automatic reconnection checkbox that you can clear, so this option may already exist in the file. However, the Windows XP version does not include this checkbox, so you must edit the file if you want to include it.
Propriedades

ID do Artigo: 323258 - Última Revisão: 21 de mar de 2008 - Revisão: 1

Comentários