Open in the explorer

Prevent changing theme

Empêcher de modifier le thème

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
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
ControlPanelDisplay.admx
Internal name
ControlPanelDisplay/CPL_Personalization_DisableThemeChange

Explanation

This setting disables the theme gallery in the Personalization Control Panel.

If you enable this setting, users cannot change or save a theme. Elements of a theme such as the desktop background, color, sounds, and screen saver can still be changed (unless policies are set to turn them off).

If you disable or do not configure this setting, there is no effect.

Note: If you enable this setting but do not specify a theme using the "load a specific theme" setting, the theme defaults to whatever the user previously set or the system default.

French text from Windows 11 26H2

Ce paramètre désactive la galerie de thèmes dans le Panneau de configuration Personnalisation.

Si vous l’activez, l’utilisateur ne peut ni modifier, ni enregistrer un thème. Les éléments d’un thème, tels que l’arrière-plan du Bureau, la couleur, les sons et l’écran de veille peuvent toujours être modifiés (sauf si des stratégies sont définies de façon à les désactiver).

Si vous désactivez ce paramètre ou ne le configurez pas, il n’y a aucun effet.

Remarque : si vous le désactivez mais ne spécifiez pas de thème à l’aide du paramètre Charger un thème spécifique, le thème aura la valeur par défaut définie précédemment par l’utilisateur ou la valeur par défaut du système.

Registry

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Value name
NoThemesTab
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_DisableThemeChange
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
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 'NoThemesTab' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: ControlPanelDisplay/CPL_Personalization_DisableThemeChange
$k = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer'
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 'NoThemesTab' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

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

Availability