Open in the explorer

Prevent specifying text color

Empêcher de spécifier la couleur du texte

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/TextColorPol

Explanation

This policy setting prevents the user from specifying the text color in Internet Explorer.

If you enable this policy setting, the user cannot specify the text color in Internet Explorer. You must specify the text color (for example: 192,192,192).

If you disable or do not configure this policy setting, the user can specify the text color in Internet Explorer.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche l’utilisateur de spécifier la couleur du texte dans Internet Explorer.

Si vous activez ce paramètre de stratégie, l’utilisateur ne peut pas spécifier la couleur du texte dans Internet Explorer. Vous devez spécifier la couleur du texte (par exemple 192,192,192).

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur peut spécifier la couleur du texte dans Internet Explorer.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Settings
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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/TextColorPol
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Text color
Set-ItemProperty -Path $k -Name 'Text Color' -Value '<value>' -Type String

Disable

# Disable: inetres/TextColorPol
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": inetres/TextColorPol
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Settings'
Remove-ItemProperty -Path $k -Name 'Text Color' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Text colorCouleur du texteTextColorText boxtextText ColorREG_SZ
Default (UI): 0,0,0

Availability