Open in the explorer

Prevent choosing default text size

Empêcher de choisir la taille du texte par défaut

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

Explanation

This policy setting prevents the user from choosing the default text size in Internet Explorer.

If you enable this policy setting, the user cannot choose the default text size in Internet Explorer. You must specify the default text size:
• Largest
• Larger
• Medium
• Smaller
• Smallest

If you disable or do not configure this policy setting, the user can choose the default text size in Internet Explorer.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche l’utilisateur de choisir la taille du texte par défaut dans Internet Explorer.

Si vous activez ce paramètre de stratégie, l’utilisateur ne peut pas choisir la taille du texte par défaut dans Internet Explorer. Vous devez spécifier la taille du texte par défaut :
• La plus grande
• Plus grande
• Moyenne
• Plus petite
• La plus petite

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

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions
Value name
NoDefaultTextSize
StateValue written
EnabledREG_DWORD = 1
KeyValueData
Software\Policies\Microsoft\Internet Explorer\ZoomResetTextSizeOnStartupREG_DWORD = 0
Disablednot 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/FontSize
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NoDefaultTextSize' -Value 1 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Zoom'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ResetTextSizeOnStartup' -Value 0 -Type DWord
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\International\Scripts'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Default Size
# Possible options:
#   Largest = 4
#   Larger = 3
#   Medium = 2
#   Smaller = 1
#   Smallest = 0
Set-ItemProperty -Path $k -Name 'IEFontSize' -Value 2 -Type DWord

Disable

# Disable: inetres/FontSize
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
# disabledValue is not defined in the ADMX: no value is specified for the "Disabled" state

Revert to "Not configured"

# Revert to "Not configured": inetres/FontSize
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Restrictions'
Remove-ItemProperty -Path $k -Name 'NoDefaultTextSize' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\Zoom'
Remove-ItemProperty -Path $k -Name 'ResetTextSizeOnStartup' -ErrorAction SilentlyContinue
$k = 'HKCU:\Software\Policies\Microsoft\Internet Explorer\International\Scripts'
Remove-ItemProperty -Path $k -Name 'IEFontSize' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Default SizeTaille par défautFontSizeDefaultDrop-down listenumIEFontSizein Software\Policies\Microsoft\Internet Explorer\International\ScriptsREG_DWORD
Default choice (UI): #2
LabelValue
LargestREG_DWORD = 4
LargerREG_DWORD = 3
MediumREG_DWORD = 2
SmallerREG_DWORD = 1
SmallestREG_DWORD = 0

Availability