Muokkaa

Jaa


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 Microsoft Intune or 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 Microsoft Intune or 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 Microsoft Intune 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 Microsoft Intune or 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 Microsoft Intune or 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 Microsoft Intune or 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 Microsoft Intune or 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 Microsoft Intune or Group Policy

Configure clipboard redirection using Microsoft Intune or Group Policy

Select the relevant tab for your scenario.

To enable or disable clipboard redirection using Microsoft Intune:

  1. Sign in to the Microsoft Intune admin center.

  2. Create or edit a configuration profile for Windows 10 and later devices, with the Settings catalog profile type.

  3. In the settings picker, browse to 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 Microsoft Intune portal.

  4. Check the box for Do not allow Clipboard redirection, then close the settings picker.

  5. Expand the Administrative templates category, then toggle the switch for Do not allow Clipboard redirection to Enabled or Disabled, depending on your requirements:

    • To allow clipboard redirection, toggle the switch to Disabled.

    • To disable clipboard redirection, toggle the switch to Enabled.

  6. Select Next.

  7. Optional: On the Scope tags tab, select a scope tag to filter the profile. For more information about scope tags, see Use role-based access control (RBAC) and scope tags for distributed IT.

  8. On the Assignments tab, select the group containing the computers providing a remote session you want to configure, then select Next.

  9. On the Review + create tab, review the settings, then select Create.

  10. Once the policy applies to the computers providing a remote session, restart them for the settings to take effect.

  11. 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 Intune or 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

For iOS/iPadOS and Android devices, you can disable clipboard redirection using Intune. For more information, see Configure client device redirection settings for Windows App and the Remote Desktop app using Microsoft Intune.