Limiter le nombre maximal de couleurs : valeur de Registre ColorDepthOrdinateurHKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services

ID de stratégie
TS_COLORDEPTH
Étendue
Configuration ordinateur
Pris en charge sur
Windows Server 2008, Windows Server 2003, Windows 7, Windows Vista et Windows XP
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Services Bureau à distance › Hôte de la session Bureau à distance › Environnement de session à distance

Registre

ColorDepth

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Intensité de couleur
Options
EntréeValeur stockée
Compatible avec le client999
15 bits2
16 bits3
24 bits4
32 bits5
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (en utiliser une seule)
; Compatible avec le client
"ColorDepth"=dword:000003e7
; 15 bits
"ColorDepth"=dword:00000002
; 16 bits
"ColorDepth"=dword:00000003
; 24 bits
"ColorDepth"=dword:00000004
; 32 bits
"ColorDepth"=dword:00000005
CMD
:: Options (en utiliser une seule)

:: Compatible avec le client
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 999 /f
:: 15 bits
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 2 /f
:: 16 bits
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 3 /f
:: 24 bits
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 4 /f
:: 32 bits
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "ColorDepth" /t REG_DWORD /d 5 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Force | Out-Null

# Options (en utiliser une seule)
# Compatible avec le client
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 999 -Force | Out-Null
# 15 bits
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 2 -Force | Out-Null
# 16 bits
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 3 -Force | Out-Null
# 24 bits
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 4 -Force | Out-Null
# 32 bits
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'ColorDepth' -PropertyType DWord -Value 5 -Force | Out-Null