Breyta

Deila með


Configure printer 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 printers from a local device to a remote session over the Remote Desktop Protocol (RDP). Printer redirection supports locally attached and network printers. When you enable printer redirection, all printers available on the local device are redirected; you can't select specific printers to redirect. The default printer on the local device is automatically set as the default printer in the remote session.

Printer redirection uses high-level redirection and doesn't require drivers to be installed on session hosts. The Remote Desktop Easy Print driver is used automatically on session hosts. The driver for the printer must be installed on the local device for redirection to work correctly.

For Azure Virtual Desktop, we recommend you enable printer redirection on your session hosts using Microsoft Intune or Group Policy, then control redirection using the host pool RDP properties.

Printer redirection uses high-level redirection and doesn't require drivers to be installed on a Cloud PC. The Remote Desktop Easy Print driver is used automatically on a Cloud PC. The driver for the printer must be installed on the local device for redirection to work correctly.

For Windows 365, you can configure your Cloud PCs using Microsoft Intune or Group Policy.

Printer redirection uses high-level redirection and doesn't require drivers to be installed on a dev box. The Remote Desktop Easy Print driver is used automatically on a dev box. The driver for the printer must be installed on the local device for redirection to work correctly.

For Microsoft Dev Box, you can configure your dev boxes using Microsoft Intune or Group Policy.

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

Tip

Universal Print is an alternative solution to redirecting printers from a local device to a remote session. For more information, see Discover Universal Print and to learn about using it with Azure Virtual Desktop, see Printing on Azure Virtual Desktop using Universal Print.

Prerequisites

Before you can configure printer redirection, you need:

  • An existing Cloud PC.
  • An existing dev box.
  • A printer available on the local device. You need to make sure local device has the printer driver is installed correctly. No driver is needed in the remote session as redirected printers use the Remote Desktop Easy Print driver.

  • To configure Microsoft Intune, you need:

    • Microsoft Entra ID account that is assigned the Policy and Profile manager built-in RBAC role.
    • A group containing the devices you want to configure.
  • To configure Group Policy, you need:

    • A domain account that has permission to create or edit Group Policy objects.
    • A security group or organizational unit (OU) containing the devices you want to configure.
  • You need to connect to a remote session from a supported app and platform. To view redirection support in Windows App and the Remote Desktop app, see Compare Windows App features across platforms and devices and Compare Remote Desktop app features across platforms and devices.

Printer 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 printers from a local device to a remote session, which is subject to a priority order.

The default configuration is:

  • Windows operating system: Printer redirection isn't blocked.
  • Azure Virtual Desktop host pool RDP properties: All printers are redirected from the local device to a remote session and the default printer on the local device is the default printer in the remote session.
  • Resultant default behavior: All printers are redirected from the local device to a remote session and the default printer on the local device is the default printer in the remote session.

Important

Take care when configuring redirection settings as the most restrictive setting is the resultant behavior. For example, if you disable printer 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 printers from a local device to a remote session, and is set using Microsoft Intune or Group Policy.

The default configuration is:

  • Windows operating system: Printer redirection isn't blocked.
  • Windows 365: All printers are redirected from the local device to a remote session and the default printer on the local device is the default printer in the remote session.
  • Resultant default behavior: All printers are redirected from the local device to a remote session and the default printer on the local device is the default printer in the remote session.

Configuration of a dev box governs the ability to redirect printers from a local device to a remote session, and is set using Microsoft Intune or Group Policy.

The default configuration is:

  • Windows operating system: Printer redirection isn't blocked.
  • Microsoft Dev Box: All printers are redirected from the local device to a remote session and the default printer on the local device is the default printer in the remote session.
  • Resultant default behavior: All printers are redirected from the local device to a remote session and the default printer on the local device is the default printer in the remote session.

Configure printer redirection using host pool RDP properties

The Azure Virtual Desktop host pool setting printer redirection controls whether to redirect printers from a local device to a remote session. The corresponding RDP property is redirectprinters:i:<value>. For more information, see Supported RDP properties.

To configure printer 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 Printer redirection, select the drop-down list, then select one of the following options:

    • The printers on the local computer are not available in remote session
    • The printers on the local computer are available in remote session (default)
    • Not configured
  6. Select Save.

Configure printer redirection using Microsoft Intune or Group Policy

Configure printer redirection using Microsoft Intune or Group Policy

Select the relevant tab for your scenario.

To allow or disable printer 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 > Printer Redirection.

    A screenshot showing the printer redirection options in the Microsoft Intune portal.

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

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

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

    • To disable printer 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.

Test printer redirection

Printer redirection uses high-level redirection; the printer is available locally and in the remote session concurrently, and requires the relevant driver installed locally. The driver for the printer doesn't need to be installed in the remote session as redirected printers use the Remote Desktop Easy Print driver.

To test printer redirection:

  1. Make sure a printer is available on the local device that's functioning.

  2. Connect to a remote session using Window App or the Remote Desktop app on a platform that supports printer redirection. For more information, see Compare Windows App features across platforms and devices and Compare Remote Desktop app features across platforms and devices.

  3. Check the printers available in the remote session. Here are some ways to check:

    1. Open Printers & scanners in the remote session from the start menu. Check the redirected printers appear in the list of printers. Redirected printers are identified where the name of the printer is appended with (redirected n), where n is the user's session ID. The session ID is appended to make sure redirected printers are unique to the user's session.

      A screenshot showing the available printers and scanners in the remote session.

    2. Open a PowerShell prompt in the remote session and run the following command:

      Get-Printer | ? DriverName -eq "Remote Desktop Easy Print" | Sort-Object | FT -AutoSize
      

      The output is similar to the following output:

      Name                                         ComputerName Type  DriverName                PortName Shared Published DeviceType
      ----                                         ------------ ----  ----------                -------- ------ --------- ----------
      HP Color LaserJet MFP M281fdw (redirected 2)              Local Remote Desktop Easy Print TS001    False  False     Print
      Microsoft Print to PDF (redirected 2)                     Local Remote Desktop Easy Print TS002    False  False     Print
      OneNote (Desktop) (redirected 2)                          Local Remote Desktop Easy Print TS003    False  False     Print
      
  4. Open an application and print a test page to verify the printer is functioning correctly.

Optional: Disable printer redirection on a local Windows device

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

  1. As an Administrator on a local Windows device, open the Registry Editor app from the start menu, or run regedit.exe from the command line.

  2. Configure the following registry key and value. You don't need to restart the local device for the settings to take effect.

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