Open in the explorer

Redirect only the default client printer

Rediriger uniquement l’imprimante cliente par défaut

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Printer Redirection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Redirection de l'imprimante
Supported on
At least Windows Server 2008 FR: Au minimum Windows Server 2008
ADMX file
terminalserver-server.admx
Internal name
terminalserver-server/TS_REDIRECT_CLIENT_PRN_ONLY

Explanation

This policy setting allows you to specify whether the default client printer is the only printer redirected in Remote Desktop Services sessions.

If you enable this policy setting, only the default client printer is redirected in Remote Desktop Services sessions.

If you disable or do not configure this policy setting, all client printers are redirected in Remote Desktop Services sessions.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de spécifier si l’imprimante cliente par défaut est la seule imprimante redirigée dans les sessions des services Bureau à distance.

Si vous activez ce paramètre de stratégie, seule l’imprimante cliente par défaut est redirigée dans les sessions des services Bureau à distance.

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, toutes les imprimantes clientes sont redirigées dans les sessions des services Bureau à distance.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
RedirectOnlyDefaultClientPrinter
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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-server/TS_REDIRECT_CLIENT_PRN_ONLY
$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 'RedirectOnlyDefaultClientPrinter' -Value 1 -Type DWord

Disable

# Disable: terminalserver-server/TS_REDIRECT_CLIENT_PRN_ONLY
$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 'RedirectOnlyDefaultClientPrinter' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": terminalserver-server/TS_REDIRECT_CLIENT_PRN_ONLY
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'RedirectOnlyDefaultClientPrinter' -ErrorAction SilentlyContinue

Availability