Edit

Share via


Disable Automatic Reconnection

Learn about Automatic Reconnection in Remote Desktop Service (RDS), lock screen security, and how to disable Automatic Reconnection for RDS session hosts and clients using Server Manager, Group Policy, and Remote Desktop Protocol (RDP) properties.

Automatic Reconnection

Microsoft Remote Desktop offers a wide range of features designed to enhance your remote working experience, such as Automatic Reconnection. Automatic Reconnection allows the client to seamlessly reconnect to their existing sessions, giving a smooth, uninterrupted user experience when temporary network disruptions occur. To learn more about the automatic reconnection behavior, see the Automatic Reconnection open specification. Automation Reconnection is available to Remote Desktop when connecting to a local PC or Remote Desktop Services (RDS).

Important

Automatic Reconnection is enabled by default, and therefore, requires explicit action from the administrators to disable it.

Lock Screen Security

When a policy or the user locks the remote session and the network connection is lost or disrupted, RDS retains the session state and connection information. If the automatic reconnection of locked sessions raises concerns for your specific use case, we recommend implementing extra security measures. Because RDS retains the session state and connection information, the client reconnects without needing to reauthenticate. The lock screen of the Remote Desktop session isn't designed to function as a security boundary. Security measures can include disabling Automatic Reconnection on either the RDS session host or the client. This article describes how to disabled Automatic Reconnection.

Prerequisites

Before you can configure Automatic Reconnection for Remote Desktop, you need to complete the following prerequisites:

  • A Windows client or Windows Server machine to connect from and to.
  • An account that is a member of RDS session host administrators group, or equivalent.
  • If your machine is a domain member, you also need a domain account that is a member of the Group Policy Creator Owners group, or equivalent.

If you're using RDS, you also need:

Methods to disable Automatic Reconnection

To disable Automatic Reconnection, you can configure your server, client, or both.

Tip

  • If you disable Automatic Reconnection from your server, clients will be unable to perform Automatic Reconnection regardless of the client configuration.

  • Changes to the Automatic Reconnection setting only apply to new sessions. Existing sessions will continue to use the Automatic Reconnection setting from the time of connection.

Client RDP Properties

You can configure the following Remote Desktop Protocol (RDP) property to disable Automatic Reconnection using the Remote Desktop Connection app or by editing the .rdp file. More information can be found here: Supported RDP properties with Remote Desktop Services. To disabled Automatic Reconnection, select the relevant method and follow the steps.

Here's how to disable Automatic Reconnection by editing the .rdp file.

  1. Locate your .rdp file, right-click the file, expand the Open with menu, then select Choose another app.

  2. Select Notepad, then select Just once

  3. Scroll to the last line of the file, then enter the following text.

    autoreconnection enabled:i:0
    

Remote Desktop Services server configuration

To disable Automatic Reconnection for your RDS session host, select the relevant method and follow the steps.

Tip

If you have an RDS deployment and want to configure Automatic Reconnection using the Session Collection properties, Group Policy must be in the Not Configured state for each session host. The Group Policy setting applied to each session host takes priority over the Automatic Reconnection setting for the Remote Desktop Session Collection.

Here's how to disable Automatic Reconnection for RDS session hosts using Group Policy.

  1. Open the Group Policy Management Console, create or edit a policy applied to your server.

  2. In the console tree, select Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Service > Remote Desktop Session Host > Connections.

  3. For the setting, right-click Automatic reconnection and select Edit.

  4. Select Disable, from the radio buttons.

  5. Select OK to complete the configuration.

Next steps