Open in the explorer

Do not allow Clipboard redirection

Ne pas autoriser la redirection du Presse-papiers

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Remote Desktop Services › Remote Desktop Session Host › Device and Resource Redirection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Redirection de périphérique et de ressource
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
TerminalServer.admx
Internal name
TerminalServer/TS_CLIENT_CLIPBOARD

Explanation

This policy setting specifies whether to prevent the sharing of Clipboard contents (Clipboard redirection) between a remote computer and a client computer during a Remote Desktop Services session.

You can use this setting to prevent users from redirecting Clipboard data to and from the remote computer and the local computer. By default, Remote Desktop Services allows Clipboard redirection.

If you enable this policy setting, users cannot redirect Clipboard data.

If you disable this policy setting, Remote Desktop Services always allows Clipboard redirection.

If you do not configure this policy setting, Clipboard redirection is not specified at the Group Policy level.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie s’il faut empêcher le partage du contenu du Presse-papiers (redirection du Presse-papiers) entre un ordinateur distant et un ordinateur client au cours d’une session de services Bureau à distance.

Vous pouvez utiliser ce paramètre pour empêcher les utilisateurs de rediriger les données du Presse-papiers de l’ordinateur distant vers l’ordinateur local et inversement. Par défaut, les Services Bureau à distance autorisent la redirection du Presse-papiers.

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas rediriger les données du Presse-papiers.

Si vous désactivez ce paramètre de stratégie, les Services Bureau à distance autorisent toujours la redirection du Presse-papiers.

Si vous ne configurez pas ce paramètre de stratégie, la redirection du Presse-papiers n’est pas spécifiée au niveau de la stratégie de groupe.

Use cases

Prevents Clipboard sharing between the remote computer and the client during a Remote Desktop session, in both directions. By default redirection is allowed, so you must act to close this data-leak channel on an application server or jump host.

When not configured, the policy leaves control to the session host configuration tool; when disabled, it always allows redirection. Note that drive redirection interacts: enabling “Do not allow drive redirection” also blocks Clipboard file copy.

Microsoft source: Device and Resource Redirection

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
fDisableClip
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/TS_CLIENT_CLIPBOARD
$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 'fDisableClip' -Value 1 -Type DWord

Disable

# Disable: TerminalServer/TS_CLIENT_CLIPBOARD
$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 'fDisableClip' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability