Use Remote Desktop Easy Print printer driver first
Utiliser d'abord le pilote d'imprimante Easy Print des services Bureau à distance
Explanation
This policy setting allows you to specify whether the Remote Desktop Easy Print printer driver is used first to install all client printers.
If you enable or do not configure this policy setting, the RD Session Host server first tries to use the Remote Desktop Easy Print printer driver to install all client printers. If for any reason the Remote Desktop Easy Print printer driver cannot be used, a printer driver on the RD Session Host server that matches the client printer is used. If the RD Session Host server does not have a printer driver that matches the client printer, the client printer is not available for the Remote Desktop session.
If you disable this policy setting, the RD Session Host server tries to find a suitable printer driver to install the client printer. If the RD Session Host server does not have a printer driver that matches the client printer, the server tries to use the Remote Desktop Easy Print driver to install the client printer. If for any reason the Remote Desktop Easy Print printer driver cannot be used, the client printer is not available for the Remote Desktop Services session.
Note: If the "Do not allow client printer redirection" policy setting is enabled, the "Use Remote Desktop Easy Print printer driver first" policy setting is ignored.
Ce paramètre de stratégie vous permet de spécifier si le pilote d'imprimante Easy Print des services Bureau à distance est d'abord utilisé pour installer toutes les imprimantes client.
Si vous activez ou si vous ne configurez pas ce paramètre de stratégie, le serveur Hôte de la session Bureau à distance tente d'abord d'utiliser le pilote d'imprimante Easy Print des services Bureau à distance pour installer toutes les imprimantes client. Si pour une raison quelconque le pilote d'imprimante Easy Print des services Bureau à distance ne peut pas être utilisé, un pilote d'imprimante du serveur Hôte de la session Bureau à distance correspondant à l'imprimante client est utilisé. Si le serveur Hôte de la session Bureau à distance ne dispose d'aucun pilote d'imprimante correspondant à l'imprimante client, celle-ci n'est pas disponible pour la session Bureau à distance.
Si vous désactivez ce paramètre de stratégie, le serveur Hôte de la session Bureau à distance tente de trouver un pilote d'imprimante adéquat pour installer l'imprimante client. Si le serveur Hôte de la session Bureau à distance ne dispose d'aucun pilote d'imprimante correspondant à l'imprimante client, il tente d'utiliser le pilote d'imprimante Easy Print des services Bureau à distance pour installer l'imprimante client. Si pour une raison quelconque le pilote d'imprimante Easy Print des services Bureau à distance ne peut pas être utilisé, l'imprimante client n'est pas disponible pour la session des services Bureau à distance.
Remarque : si le paramètre de stratégie « Ne pas autoriser la redirection de l'imprimante client » est activé, le paramètre de stratégie « Utiliser d'abord le pilote d'imprimante Easy Print des services Bureau à distance » est ignoré.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
UseUniversalPrinterDriverFirst
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 3 |
| Disabled | REG_DWORD = 4 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: TerminalServer/TS_EASY_PRINT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UseUniversalPrinterDriverFirst' -Value 3 -Type DWordDisable
# Disable: TerminalServer/TS_EASY_PRINT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'UseUniversalPrinterDriverFirst' -Value 4 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_EASY_PRINT
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'UseUniversalPrinterDriverFirst' -ErrorAction SilentlyContinue