Open in the explorer

Load a specific theme

Charger un thème spécifique

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Control Panel › Personalization User Configuration › Policies › Administrative Templates › Control Panel › Personalization FR: Configuration ordinateur › Stratégies › Modèles d'administration › Panneau de configuration › PersonnalisationFR: Configuration utilisateur › Stratégies › Modèles d'administration › Panneau de configuration › Personnalisation
Supported on
At least Windows Server 2008 R2 or Windows 7 FR: Au minimum Windows Server 2008 R2 ou Windows 7
ADMX file
ControlPanelDisplay.admx
Internal name
ControlPanelDisplay/CPL_Personalization_SetTheme

Explanation

Specifies which theme file is applied to the computer the first time a user logs on.

If you enable this setting, the theme that you specify will be applied when a new user logs on for the first time. This policy does not prevent the user from changing the theme or any of the theme elements such as the desktop background, color, sounds, or screen saver after the first logon.

If you disable or do not configure this setting, the default theme will be applied at the first logon.

French text from Windows 11 26H2

Spécifie le fichier de thème appliqué à l’ordinateur la première fois qu’un utilisateur ouvre une session.

Si vous activez ce paramètre, le thème spécifié sera appliqué lorsqu’un utilisateur ouvrira une session pour la première fois. Cette stratégie n’empêche pas de modifier le thème ou l’un des éléments du thème, tels que l’arrière-plan du Bureau, la couleur, les sons ou l’écran de veille après la première ouverture de session.

Si vous désactivez ou ne configurez pas ce paramètre, le thème par défaut sera appliqué à la première ouverture de session.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Personalization
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.

Computer (HKLM)

Enable

# Enable: ControlPanelDisplay/CPL_Personalization_SetTheme
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Path to theme file
Set-ItemProperty -Path $k -Name 'ThemeFile' -Value '<value>' -Type String

Disable

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

Revert to "Not configured"

# Revert to "Not configured": ControlPanelDisplay/CPL_Personalization_SetTheme
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
Remove-ItemProperty -Path $k -Name 'ThemeFile' -ErrorAction SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Path to theme file:Chemin d’accès du fichier de thèmes :ThemeFilenameText boxtextThemeFileREG_SZ

Availability