限制色彩深度最大值 的登錄值 ColorDepth電腦HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

原則 ID
TS_COLORDEPTH
適用範圍
電腦設定
支援的作業系統
Windows Server 2008、Windows Server 2003、Windows 7、Windows Vista 與 Windows XP
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › 遠端桌面服務 › 遠端桌面工作階段主機 › 遠端工作階段環境

登錄

ColorDepth

REG_DWORD電腦
啟用時的值
取決於選項值
元素
色彩深度
選項
項目儲存的值
用戶端相容999
15 位元2
16 位元3
24 位元4
32 位元5
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 用戶端相容
"ColorDepth"=dword:000003e7
; 15 位元
"ColorDepth"=dword:00000002
; 16 位元
"ColorDepth"=dword:00000003
; 24 位元
"ColorDepth"=dword:00000004
; 32 位元
"ColorDepth"=dword:00000005
CMD
:: 選項 (只使用其中一個)

:: 用戶端相容
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 999 /f
:: 15 位元
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 2 /f
:: 16 位元
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 3 /f
:: 24 位元
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 4 /f
:: 32 位元
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 5 /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 'ColorDepth' -PropertyType DWord -Value 999 -Force | Out-Null
# 15 位元
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 2 -Force | Out-Null
# 16 位元
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 3 -Force | Out-Null
# 24 位元
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 4 -Force | Out-Null
# 32 位元
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 5 -Force | Out-Null