Prevent the use of Windows colors
Empêcher l’utilisation des couleurs Windows
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.
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
| State | Value written |
|---|---|
| Enabled | REG_SZ = no |
| Disabled | REG_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 StringDisable
# 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 StringRevert 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