Forum Discussion
Tomaz9x
Mar 31, 2023Copper Contributor
AVD network printer redirection
Hello! I have problem with printer redirection to AVD. Users have local and network printers (IP port) installed on their PC. When they connect to Azure Virtual desktop (AVD) all their printers get ...
josequintino
Apr 02, 2023MCT
Hello @Tomaz.
Printer redirection in Azure Virtual Desktop (AVD) can sometimes cause issues, especially when dealing with a mix of local and network printers. To resolve the issue of network printers getting redirected, you can use a combination of Group Policy settings and registry edits to control which printers are redirected.
1- Create a Group Policy Object (GPO) for the AVD session hosts:
a. Open the Group Policy Management Console (GPMC) on a domain controller or a Windows
computer with the Remote Server Administration Tools (RSAT) installed.
b. Create a new GPO or edit an existing one that targets your AVD session hosts.
2- Configure the Group Policy settings to control printer redirection:
a. Navigate to "User Configuration" > "Policies" > "Administrative Templates" > "Windows
Components" > "Remote Desktop Services" > "Remote Desktop Session Host" > "Printer
Redirection".
b. Enable the policy "Do not allow client printer redirection" to disable printer redirection for
all printers. This is a temporary measure to prevent network printers from being redirected.
3- Configure registry settings to allow local printer redirection:
a. Navigate to "Computer Configuration" > "Preferences" > "Windows Settings" > "Registry"
in the GPO you created in step 1.
b. Create a new registry item with the following settings:
- Action: Update
- Hive: HKEY_LOCAL_MACHINE
- Key Path: SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Value name: FDisableCpm
- Value type: REG_DWORD
- Value data: 0
4- Apply the GPO to your AVD session hosts and force a Group Policy update on the hosts by
running the following command in an elevated command prompt or PowerShell session:
gpupdate /force
5- Test the new configuration by logging into AVD and checking if only local printers are
redirected.
This configuration should disable printer redirection for all printers and then re-enable it only for local printers. If you still experience issues, consider further troubleshooting with event logs or reaching out to Microsoft Support.
Printer redirection in Azure Virtual Desktop (AVD) can sometimes cause issues, especially when dealing with a mix of local and network printers. To resolve the issue of network printers getting redirected, you can use a combination of Group Policy settings and registry edits to control which printers are redirected.
1- Create a Group Policy Object (GPO) for the AVD session hosts:
a. Open the Group Policy Management Console (GPMC) on a domain controller or a Windows
computer with the Remote Server Administration Tools (RSAT) installed.
b. Create a new GPO or edit an existing one that targets your AVD session hosts.
2- Configure the Group Policy settings to control printer redirection:
a. Navigate to "User Configuration" > "Policies" > "Administrative Templates" > "Windows
Components" > "Remote Desktop Services" > "Remote Desktop Session Host" > "Printer
Redirection".
b. Enable the policy "Do not allow client printer redirection" to disable printer redirection for
all printers. This is a temporary measure to prevent network printers from being redirected.
3- Configure registry settings to allow local printer redirection:
a. Navigate to "Computer Configuration" > "Preferences" > "Windows Settings" > "Registry"
in the GPO you created in step 1.
b. Create a new registry item with the following settings:
- Action: Update
- Hive: HKEY_LOCAL_MACHINE
- Key Path: SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
- Value name: FDisableCpm
- Value type: REG_DWORD
- Value data: 0
4- Apply the GPO to your AVD session hosts and force a Group Policy update on the hosts by
running the following command in an elevated command prompt or PowerShell session:
gpupdate /force
5- Test the new configuration by logging into AVD and checking if only local printers are
redirected.
This configuration should disable printer redirection for all printers and then re-enable it only for local printers. If you still experience issues, consider further troubleshooting with event logs or reaching out to Microsoft Support.
- fahiminamdarMar 20, 2024
Microsoft
How do we redirect just the network printers to the AVD session host, I don't need my local printers, I want my network printers to get redirected josequintino
- Tomaz9xSep 27, 2023Copper ContributorHello josequintino
Thank you for your answer.
I try to follow your step by step guide, but I have problem with GP path in point 2, where you guide me to "a. Navigate to "User Configuration" > "Policies" > "Administrative Templates" > "Windows
Components" > "Remote Desktop Services" > "Remote Desktop Session Host" > "Printer
Redirection"."
There is no setting "Do not allow client printer redirection" , this setting exist in Computer configuration. Did you make mistake or did I missing something?
Regards
Tomaž- josequintinoSep 27, 2023MCTHi Tomaz9x.
Here's the corrected steps:
Open the Group Policy Management Console (GPMC) on your Active Directory server.
Navigate to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Printer Redirection.
In this location, you should find the "Do not allow client printer redirection" policy. Configure it according to your needs. Enabling this policy will prevent printer redirection for all printers, including local and network printers.
If you want to redirect only the default client printer, you can use the "Redirect only the default client printer" policy, which is also located in the same section under Computer Configuration. - josequintinoSep 27, 2023MCT