Prevent choosing default text size
Empêcher de choisir la taille du texte par défaut
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.
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
| State | Value written | ||||||
|---|---|---|---|---|---|---|---|
| Enabled | REG_DWORD = 1
| ||||||
| Disabled | 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/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 DWordDisable
# 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" stateRevert 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Default SizeTaille par défautFontSizeDefault | Drop-down listenum | IEFontSizein Software\Policies\Microsoft\Internet Explorer\International\Scripts | REG_DWORD | Default choice (UI): #2
|