Restrict clipboard transfer from server to client
Restreindre le transfert du Presse-papiers du serveur vers le client
Explanation
This policy setting allows you to restrict clipboard data transfers from server to client.
If you enable this policy setting, you must choose from the following behaviors:
- Disable clipboard transfers from server to client.
- Allow plain text copying from server to client.
- Allow plain text and images copying from server to client.
- Allow plain text, images and Rich Text Format copying from server to client.
- Allow plain text, images, Rich Text Format and HTML copying from server to client.
If you disable or do not configure this policy setting, users can copy arbitrary contents from server to client 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 serveur vers le client.
Si vous activez ce paramètre de stratégie, vous devez choisir parmi les comportements suivants :
- Désactiver les transferts du Presse-papiers du serveur vers le client.
- Autoriser la copie de texte brut du serveur vers le client.
- Autoriser la copie de texte brut et d’images du serveur vers le client.
- Autoriser la copie de texte brut, d’images et de format texte enrichi du serveur vers le client.
- Autoriser la copie de texte brut, d’images, de format texte enrichi et de HTML du serveur vers le client.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent copier du contenu arbitraire du serveur vers le client 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_SC
$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 server to client
# Possible options:
# Disable clipboard transfers from server to client = 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 'SCClipLevel' -Value 0 -Type DWordDisable
# Disable: TerminalServer/TS_CLIENT_CLIPBOARDRESTRICTION_SC
# 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_SC
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services'
Remove-ItemProperty -Path $k -Name 'SCClipLevel' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Restrict clipboard transfer from server to client:Restreindre le transfert du Presse-papiers du serveur vers le client :TS_SC_CLIPBOARD_RESTRICTION_Text | Drop-down listenum | SCClipLevel | REG_DWORD | Required · Default choice (UI): #0
|