限制剪貼簿從用戶端傳送到伺服器 的登錄值 CSClipLevel電腦HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

原則 ID
TS_CLIENT_CLIPBOARDRESTRICTION_CS
適用範圍
電腦設定、使用者設定
支援的作業系統
至少需要 Windows 11 版本 22H2
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › 遠端桌面服務 › 遠端桌面工作階段主機 › 裝置及資源重新導向

登錄

CSClipLevel

REG_DWORD電腦使用者
啟用時的值
取決於選項值
元素
限制剪貼簿從用戶端傳送到伺服器:
選項
項目儲存的值
停用剪貼簿從用戶端傳送到伺服器0
允許純文字1
允許純文字和影像2
允許純文字、影像和 RTF 格式3
允許純文字、影像、RTF 格式和 HTML4
以 .reg · CMD · PowerShell 套用
電腦整部電腦的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; 選項 (只使用其中一個)
; 停用剪貼簿從用戶端傳送到伺服器
"CSClipLevel"=dword:00000000
; 允許純文字
"CSClipLevel"=dword:00000001
; 允許純文字和影像
"CSClipLevel"=dword:00000002
; 允許純文字、影像和 RTF 格式
"CSClipLevel"=dword:00000003
; 允許純文字、影像、RTF 格式和 HTML
"CSClipLevel"=dword:00000004
CMD
:: 選項 (只使用其中一個)

:: 停用剪貼簿從用戶端傳送到伺服器
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 0 /f
:: 允許純文字
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 1 /f
:: 允許純文字和影像
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 2 /f
:: 允許純文字、影像和 RTF 格式
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 3 /f
:: 允許純文字、影像、RTF 格式和 HTML
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 4 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# 選項 (只使用其中一個)
# 停用剪貼簿從用戶端傳送到伺服器
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 0 -Force | Out-Null
# 允許純文字
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 1 -Force | Out-Null
# 允許純文字和影像
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 2 -Force | Out-Null
# 允許純文字、影像和 RTF 格式
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 3 -Force | Out-Null
# 允許純文字、影像、RTF 格式和 HTML
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 4 -Force | Out-Null
使用者各帳戶的設定
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]

; 選項 (只使用其中一個)
; 停用剪貼簿從用戶端傳送到伺服器
"CSClipLevel"=dword:00000000
; 允許純文字
"CSClipLevel"=dword:00000001
; 允許純文字和影像
"CSClipLevel"=dword:00000002
; 允許純文字、影像和 RTF 格式
"CSClipLevel"=dword:00000003
; 允許純文字、影像、RTF 格式和 HTML
"CSClipLevel"=dword:00000004
CMD
:: 選項 (只使用其中一個)

:: 停用剪貼簿從用戶端傳送到伺服器
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 0 /f
:: 允許純文字
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 1 /f
:: 允許純文字和影像
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 2 /f
:: 允許純文字、影像和 RTF 格式
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 3 /f
:: 允許純文字、影像、RTF 格式和 HTML
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "CSClipLevel" /t REG_DWORD /d 4 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# 選項 (只使用其中一個)
# 停用剪貼簿從用戶端傳送到伺服器
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 0 -Force | Out-Null
# 允許純文字
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 1 -Force | Out-Null
# 允許純文字和影像
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 2 -Force | Out-Null
# 允許純文字、影像和 RTF 格式
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 3 -Force | Out-Null
# 允許純文字、影像、RTF 格式和 HTML
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'CSClipLevel' -PropertyType DWord -Value 4 -Force | Out-Null