Configure the clipboard transfer direction and types of data that can be copied in Azure Virtual Desktop

Important

Configuring the clipboard transfer direction in Azure Virtual Desktop is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.

Clipboard redirection in Azure Virtual Desktop allows users to copy and paste content, such as text, images, and files between the user's device and the remote session in either direction. You might want to limit the direction of the clipboard for users, to help prevent data exfiltration or malicious files being copied to a session host. 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, from the following options:

  • Disable clipboard transfers from session host to client, client to session host, or both.
  • Allow plain text only.
  • Allow plain text and images only.
  • Allow plain text, images, and Rich Text Format only.
  • Allow plain text, images, Rich Text Format, and HTML only.

You apply settings to your session hosts. It doesn't depend on a specific Remote Desktop client or its version. This article shows you how to configure the direction the clipboard and the types of data that can be copied using Microsoft Intune, or you can configure the local Group Policy or registry of session hosts.

Prerequisites

To configure the clipboard transfer direction, you need:

  • Session hosts running Windows 11 Insider Preview Build 25898 or the most recent version of Windows Insider Build (Dev Channel). You must join the Windows Insider Program to activate the Dev Channel Preview Build.

  • Host pool RDP properties must allow clipboard redirection, otherwise it will be completely blocked.

  • Depending on the method you use to configure the clipboard transfer direction:

    • For Intune, you need permission to configure and apply settings. For more information, see Administrative template for Azure Virtual Desktop.

    • For configuring the local Group Policy or registry of session hosts, you need an account that is a member of the local Administrators group.

Configure clipboard transfer direction

Here's how to configure the clipboard transfer direction and the types of data that can be copied. Select the relevant tab for your scenario.

To configure the clipboard using Intune, follow these steps. This process creates an Intune settings catalog policy.

  1. Sign in to the Microsoft Intune admin center.

  2. Select Devices > Manage devices > Configuration > Create > New policy.

  3. Enter the following properties:

    • Platform: Select Windows 10 and later.
    • Profile type: Select Settings catalog.
  4. Select Create.

  5. In Basics, enter the following properties:

    • Name: Enter a descriptive name for the profile. Name your profile so you can easily identify it later.
    • Description: Enter a description for the profile. This setting is optional, but recommended.
  6. Select Next.

  7. In Configuration settings, select Add settings. Then:

    1. In the settings picker, expand Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection.

    2. Select the following settings and make sure you select the settings with the correct scope. The (User) settings apply to the user scope. The other settings apply to the device scope. To determine which scope is correct for your scenario, go to Settings catalog - Device scope vs. user scope settings:

      • Restrict clipboard transfer from server to client

      • Restrict clipboard transfer from client to server

        OR

      • Restrict clipboard transfer from server to client (User)

      • Restrict clipboard transfer from client to server (User)

    3. Close the settings picker.

  8. Configure the settings:

    • Restrict clipboard transfer from server to client: Select Enabled.

    • Restrict clipboard transfer from server to client: Select the type of clipboard data you want to prevent or allow. Your options:

      • Disable clipboard transfers from server to client
      • Allow plain text
      • Allow plain text and images
      • Allow plain text, images, and Rich Text Format
      • Allow plain text, images, Rich Text Format, and HTML
    • Restrict clipboard transfer from client to server: Select Enabled.

    • Restrict clipboard transfer from client to server: Select the type of clipboard data you want to prevent or allow. Your options:

      • Disable clipboard transfers from server to client
      • Allow plain text
      • Allow plain text and images
      • Allow plain text, images, and Rich Text Format
      • Allow plain text, images, Rich Text Format, and HTML
  9. Select Next.

  10. At the Scope tags tab (optional), you can skip this step. For more information about scope tags in Intune, see Use RBAC roles and scope tags for distributed IT.

    Select Next.

  11. For the Assignments tab, select the users, devices, or groups to receive the profile, then select Next. For more information on assigning profiles, see Assign user and device profiles.

  12. On the Review + create tab, review the configuration information, then select Create.

  13. Once the policy configuration is created, resync your session hosts and reboot them for the settings to take effect.

  14. Connect to a remote session with a supported client and test the clipboard settings you configured are working by trying to copy and paste content.