Configure clipboard redirection over the Remote Desktop Protocol

Tip

This article is shared for services and products that use the Remote Desktop Protocol (RDP) to provide remote access to Windows desktops and apps.

Select a product using the buttons at the top of this article to show the relevant content.

You can configure the redirection behavior of the clipboard between a local device and a remote session over the Remote Desktop Protocol (RDP).

For Azure Virtual Desktop, we recommend you enable clipboard redirection on your session hosts using Group Policy, then control redirection using the host pool RDP properties. Additionally, in Windows Insider Preview, you can configure whether users can use the clipboard from session host to client, or client to session host, and the types of data that can be copied. For more information, see Configure the clipboard transfer direction and types of data that can be copied.

For Windows 365, you can configure your Cloud PCs using Group Policy. Additionally, in Windows Insider Preview, you can configure whether users can use the clipboard from Cloud PC to client, or client to Cloud PC, and the types of data that can be copied. For more information, see Configure the clipboard transfer direction and types of data that can be copied.

For Microsoft Dev Box, you can configure your dev boxes using or Group Policy. Additionally, in Windows Insider Preview, you can configure whether users can use the clipboard from dev box to client, or client to dev box, and the types of data that can be copied. For more information, see Configure the clipboard transfer direction and types of data that can be copied.

This article provides information about the supported redirection methods and how to configure the redirection behavior for the clipboard. To learn more about how redirection works, see Redirection over the Remote Desktop Protocol.

Prerequisites

Before you can configure clipboard redirection, you need:

  • An existing Cloud PC.
  • An existing dev box.

Configure clipboard redirection

Configuration of a session host using Group Policy, or setting an RDP property on a host pool governs the ability to redirect the clipboard between the remote session and the local device, which is subject to a priority order.

The default configuration is:

  • Windows operating system: Clipboard redirection isn't blocked.
  • Azure Virtual Desktop host pool RDP properties: The clipboard is available between the remote session and the local device.
  • Resultant default behavior: The clipboard is redirected in both directions between the remote session and the local device.

Important

Take care when configuring redirection settings as the most restrictive setting is the resultant behavior. For example, if you disable clipboard redirection on a session host with Group Policy, but enable it with the host pool RDP property, redirection is disabled.

Configuration of a Cloud PC governs the ability to redirect the clipboard between the remote session and the local device, and is set using Group Policy.

The default configuration is:

  • Windows operating system: Clipboard redirection isn't blocked.
  • Windows 365: Clipboard redirection is enabled.
  • Resultant default behavior: The clipboard is redirected in both directions between the remote session and the local device.

Configuration of a dev box governs the ability to redirect the clipboard between the remote session and the local device, and is set using Group Policy.

The default configuration is:

  • Windows operating system: Clipboard redirection isn't blocked.
  • Microsoft Dev Box: Clipboard redirection is enabled.
  • Resultant default behavior: The clipboard is redirected in both directions between the remote session and the local device.

Configure clipboard redirection using host pool RDP properties

The Azure Virtual Desktop host pool setting clipboard redirection controls whether to redirect the clipboard between the remote session and the local device. The corresponding RDP property is redirectclipboard:i:<value>. For more information, see Supported RDP properties.

To configure clipboard redirection using host pool RDP properties:

  1. Sign in to the Azure portal.

  2. In the search bar, type Azure Virtual Desktop and select the matching service entry.

  3. Select Host pools, then select the host pool you want to configure.

  4. Select RDP Properties, then select Device redirection.

    A screenshot showing the host pool device redirection tab in the Azure portal.

  5. For Clipboard redirection, select the drop-down list, then select one of the following options:

    • Clipboard on local computer isn't available in remote session
    • Clipboard on local computer is available in remote session (default)
    • Not configured
  6. Select Save.

  7. To test the configuration, connect to a remote session and copy and paste some text between the local device and remote session. Verify that the text is as expected.

Configure clipboard redirection using Group Policy

Configure clipboard redirection using Group Policy

Select the relevant tab for your scenario.

To enable or disable clipboard redirection using Group Policy:

  1. Open the Group Policy Management console on device you use to manage the Active Directory domain.

  2. Create or edit a policy that targets the computers providing a remote session you want to configure.

  3. Navigate to Computer Configuration > Policies > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection.

    A screenshot showing the device and resource redirection options in the Group Policy editor.

  4. Double-click the policy setting Do not allow Clipboard redirection to open it.

    • To enable clipboard redirection, select Disabled or Not configured, then select OK.

    • To disable clipboard redirection, select Enabled, then select OK.

  5. Ensure the policy is applied to the computers providing a remote session, then restart them for the settings to take effect.

  6. To test the configuration, connect to a remote session and copy and paste some text between the local device and remote session. Verify that the text is as expected.

Important

If you disable drive redirection using Group Policy, it also prevents files being transferred between the local device and remote session using the clipboard. Other content, such as text or images, isn't affected.

Optional: Disable clipboard redirection on a local device

You can disable clipboard redirection on a local device to prevent the clipboard from being redirected between a remote session. This method is useful if you want to enable clipboard redirection for most users, but disable it for specific devices.

On a local Windows device, you can disable clipboard redirection by configuring the following registry key and value:

  • Key: HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client
  • Type: REG_DWORD
  • Value name: DisableClipboardRedirection
  • Value data: 1