Redirect only the default client printer
Rediriger uniquement l’imprimante cliente par défaut
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.
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
| 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-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 DWordDisable
# 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 DWordRevert 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