Open in the explorer

Prevent the use of Windows colors

Empêcher l’utilisation des couleurs Windows

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Windows Components › Internet Explorer › Internet Settings › Display settings › General Colors FR: Configuration utilisateur › Stratégies › Modèles d'administration › Composants Windows › Internet Explorer › Paramètres Internet › Afficher les paramètres › Couleurs générales
Supported on
At least Internet Explorer 7.0 FR: Au moins Internet Explorer 7.0
ADMX file
inetres.admx
Internal name
inetres/UseWindowsColors

Explanation

This policy setting prevents the user from using Windows colors as a part of the display settings.

If you enable this policy setting, Windows colors are turned off. The user cannot turn them on.

If you disable this policy setting, Windows colors are turned on. The user cannot turn them off.

If you do not configure this policy setting, the user can turn on or turn off Windows colors for display.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche l’utilisateur de recourir aux couleurs Windows dans le cadre des paramètres d’affichage.

Si vous activez ce paramètre de stratégie, les couleurs Windows sont désactivées. L’utilisateur ne peut pas les réactiver.

Si vous désactivez ce paramètre de stratégie, les couleurs Windows sont activées. L’utilisateur ne peut pas les désactiver.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut activer ou désactiver les couleurs Windows pour l’affichage.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Main
Value name
Use_DlgBox_Colors
StateValue written
EnabledREG_SZ = no
DisabledREG_SZ = yes

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.

Enable

# Enable: inetres/UseWindowsColors
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Use_DlgBox_Colors' -Value 'no' -Type String

Disable

# Disable: inetres/UseWindowsColors
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Use_DlgBox_Colors' -Value 'yes' -Type String

Revert to "Not configured"

# Revert to "Not configured": inetres/UseWindowsColors
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Main'
Remove-ItemProperty -Path $k -Name 'Use_DlgBox_Colors' -ErrorAction SilentlyContinue

Availability