Specify RD Session Host server fallback printer driver behavior
Spécifier le comportement par défaut du pilote d'imprimante du serveur Hôte de la session Bureau à distance
Explanation
This policy setting allows you to specify the RD Session Host server fallback printer driver behavior.
By default, the RD Session Host server fallback printer driver is disabled. If the RD Session Host server does not have a printer driver that matches the client's printer, no printer will be available for the Remote Desktop Services session.
If you enable this policy setting, the fallback printer driver is enabled, and the default behavior is for the RD Session Host server to find a suitable printer driver. If one is not found, the client's printer is not available. You can choose to change this default behavior. The available options are:
"Do nothing if one is not found" - If there is a printer driver mismatch, the server will attempt to find a suitable driver. If one is not found, the client's printer is not available. This is the default behavior.
"Default to PCL if one is not found" - If no suitable printer driver can be found, default to the Printer Control Language (PCL) fallback printer driver.
"Default to PS if one is not found" - If no suitable printer driver can be found, default to the PostScript (PS) fallback printer driver.
"Show both PCL and PS if one is not found" - If no suitable driver can be found, show both PS and PCL-based fallback printer drivers.
If you disable this policy setting, the RD Session Host server fallback driver is disabled and the RD Session Host server will not attempt to use the fallback printer driver.
If you do not configure this policy setting, the fallback printer driver behavior is off by default.
Note: If the "Do not allow client printer redirection" setting is enabled, this policy setting is ignored and the fallback printer driver is disabled.
Ce paramètre de stratégie vous permet de spécifier le comportement du pilote d'imprimante par défaut du serveur Hôte de la session Bureau à distance.
Par défaut, le pilote d'imprimante par défaut du serveur Hôte de la session Bureau à distance est désactivé. Si le serveur Hôte de la session Bureau à distance ne dispose d'aucun pilote d'imprimante correspondant à l'imprimante du client, aucune imprimante n'est disponible pour la session de services Bureau à distance.
Si vous activez ce paramètre de stratégie, le pilote d'imprimante par défaut est activé et, par défaut, le serveur Hôte de la session Bureau à distance recherche un pilote d'imprimante adéquat. S'il n'en trouve pas, l'imprimante du client n'est pas disponible. Vous pouvez choisir de modifier ce comportement par défaut. Les options disponibles sont :
Ne rien faire à défaut d'un pilote adéquat : si les pilotes d'imprimante ne correspondent pas, le serveur tente de trouver un pilote adéquat. S'il n'en trouve pas, l'imprimante du client n'est pas disponible. Il s'agit du comportement par défaut.
« Recourir au pilote PCL à défaut d’un pilote adéquat » : si aucun pilote adéquat n’est trouvé, le pilote d’imprimante PCL (Printer Control Language) est utilisé par défaut.
« Recourir au pilote PS à défaut d’un pilote adéquat » : si aucun pilote adéquat n’est trouvé, le pilote d’imprimante PS (PostScript) est utilisé par défaut.
« Proposer les deux pilotes PCL et PS à défaut d’un pilote adéquat » : si aucun pilote adéquat n’est trouvé, les pilotes d’imprimante par défaut PS et PCL sont affichés.
Si vous désactivez ce paramètre de stratégie, le pilote d'imprimante par défaut du serveur Hôte de la session Bureau à distance est désactivé et celui-ci ne tentera pas d'utiliser le pilote d'imprimante par défaut.
Si vous ne configurez pas ce paramètre de stratégie, le pilote d'imprimante par défaut est désactivé par défaut.
Remarque : si le paramètre « Ne pas autoriser la redirection de l’imprimante client » est activé, ce paramètre de stratégie est ignoré et le pilote d’imprimante par défaut est désactivé.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
fPolicyFallbackPrintDriver
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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_FALLBACKPRINTDRIVERTYPE
$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 'fPolicyFallbackPrintDriver' -Value 1 -Type DWord
# When attempting to find a suitable driver
# Possible options:
# Do nothing if one is not found. = 1
# Default to PCL if one is not found. = 2
# Default to PS if one is not found. = 3
# Show both PCL and PS if one is not found. = 4
Set-ItemProperty -Path $k -Name 'FallbackPrintDriverType' -Value 1 -Type DWordDisable
# Disable: TerminalServer/TS_FALLBACKPRINTDRIVERTYPE
$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 'fPolicyFallbackPrintDriver' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_FALLBACKPRINTDRIVERTYPE
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'fPolicyFallbackPrintDriver' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'FallbackPrintDriverType' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| When attempting to find a suitable driver:Lors de la recherche d’un pilote d’impression :TS_FALLBACK_OPTIONS | Drop-down listenum | FallbackPrintDriverType | REG_DWORD | Default choice (UI): #0
|