Open in the explorer

Prohibit selection of visual style font size

Empêcher la sélection de la taille de police du style visuel

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Control Panel › Personalization FR: Configuration utilisateur › Stratégies › Modèles d'administration › Panneau de configuration › Personnalisation
Supported on
Windows Server 2003, Windows XP, and Windows 2000 only FR: Windows Server 2003, Windows XP et Windows 2000 uniquement
ADMX file
ControlPanelDisplay.admx
Internal name
ControlPanelDisplay/CPL_Personalization_LockFontSize

Explanation

Prevents users from changing the size of the font in the windows and buttons displayed on their screens.

If this setting is enabled, the "Font size" drop-down list on the Appearance tab in Display Properties is disabled.

If you disable or do not configure this setting, a user may change the font size using the "Font size" drop-down list on the Appearance tab.

French text from Windows 11 26H2

Empêche les utilisateurs de modifier la taille de la police dans les fenêtres et les boutons affichés à l’écran.

Si ce paramètre est activé, la liste déroulante Taille de police dans l’onglet Apparence des Propriétés d’affichage est désactivée.

Si vous désactivez ce paramètre ou ne le configurez pas, un utilisateur peut modifier la taille de la police en utilisant la liste déroulante Taille de police dans l’onglet Apparence.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
Value name
NoSizeChoice
StateValue written
Enablednot defined in the ADMX
Disablednot defined in the ADMX

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

The ADMX does not specify the value written when enabled; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled). The commands below use 1/0 as an assumption.

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: ControlPanelDisplay/CPL_Personalization_LockFontSize
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoSizeChoice' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: ControlPanelDisplay/CPL_Personalization_LockFontSize
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# The ADMX does not specify the value written; the GPO editor usually writes REG_DWORD 1 (enabled) / 0 (disabled)
Set-ItemProperty -Path $k -Name 'NoSizeChoice' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": ControlPanelDisplay/CPL_Personalization_LockFontSize
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System'
Remove-ItemProperty -Path $k -Name 'NoSizeChoice' -ErrorAction SilentlyContinue

Availability