Restrict clipboard transfer from client to server
Restreindre le transfert du Presse-papiers du client vers le serveur
Explanation
This policy setting allows you to restrict clipboard data transfers from client to server.
If you enable this policy setting, you must choose from the following behaviors:
- Disable clipboard transfers from client to server.
- Allow plain text copying from client to server.
- Allow plain text and images copying from client to server.
- Allow plain text, images and Rich Text Format copying from client to server.
- Allow plain text, images, Rich Text Format and HTML copying from client to server.
If you disable or do not configure this policy setting, users can copy arbitrary contents from client to server if clipboard redirection is enabled.
Note: This policy setting appears in both Computer Configuration and User Configuration. If both policy settings are configured, the stricter restriction will be used.
Ce paramètre de stratégie vous permet de limiter les transferts de données du Presse-papiers du client vers le serveur.
Si vous activez ce paramètre de stratégie, vous devez choisir parmi les comportements suivants :
- Désactiver les transferts du Presse-papiers du client vers le serveur.
- Autoriser la copie de texte brut du client vers le serveur.
- Autoriser la copie de texte brut et d’images du client vers le serveur.
- Autoriser la copie de texte brut, d’images et de format texte enrichi du client vers le serveur.
- Autoriser la copie de texte brut, d’images, de format texte enrichi et de HTML du client vers le serveur.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent copier du contenu arbitraire du client vers le serveur si la redirection du Presse-papiers est activée.
Remarque : ce paramètre de stratégie s’affiche dans Configuration de l’ordinateur et Configuration utilisateur. Si les deux paramètres de stratégie sont configurés, la restriction la plus stricte est utilisée.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal ServicesHKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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.
Computer (HKLM)
Enable
# Enable: TerminalServer/TS_CLIENT_CLIPBOARDRESTRICTION_CS
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Restrict clipboard transfer from client to server
# Possible options:
# Disable clipboard transfers from client to server = 0
# Allow plain text = 1
# Allow plain text and images = 2
# Allow plain text, images and Rich Text Format = 3
# Allow plain text, images, Rich Text Format and HTML = 4
Set-ItemProperty -Path $k -Name 'CSClipLevel' -Value 0 -Type DWordDisable
# Disable: TerminalServer/TS_CLIENT_CLIPBOARDRESTRICTION_CS
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": TerminalServer/TS_CLIENT_CLIPBOARDRESTRICTION_CS
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'CSClipLevel' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Restrict clipboard transfer from client to server:Restreindre le transfert du Presse-papiers du client vers le serveur :TS_CS_CLIPBOARD_RESTRICTION_Text | Drop-down listenum | CSClipLevel | REG_DWORD | Required · Default choice (UI): #0
|