Load a specific theme
Charger un thème spécifique
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.
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\PersonalizationHKEY_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 StringDisable
# 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 SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Path to theme file:Chemin d’accès du fichier de thèmes :ThemeFilename | Text boxtext | ThemeFile | REG_SZ |