Prevent changing lock screen and logon image
Empêcher la modification de l’image de l’écran de verrouillage et d’ouverture de session
Explanation
Prevents users from changing the background image shown when the machine is locked or when on the logon screen.
By default, users can change the background image shown when the machine is locked or displaying the logon screen.
If you enable this setting, the user will not be able to change their lock screen and logon image, and they will instead see the default image.
Empêche les utilisateurs de modifier l’image d’arrière-plan qui apparaît lorsque l’ordinateur est verrouillé ou lorsqu’il affiche l’écran d’ouverture de session.
Par défaut, les utilisateurs peuvent modifier l’image d’arrière-plan qui apparaît lorsque l’ordinateur est verrouillé ou lorsqu’il affiche l’écran d’ouverture de session.
Si vous activez ce paramètre, l’utilisateur ne peut pas modifier l’image de l’écran de verrouillage et d’ouverture de session. Il affiche au contraire l’image par défaut.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization- Value name
NoChangingLockScreen
| State | Value written |
|---|---|
| Enabled | not defined in the ADMX |
| Disabled | not 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_NoChangingLockScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
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 'NoChangingLockScreen' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: ControlPanelDisplay/CPL_Personalization_NoChangingLockScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
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 'NoChangingLockScreen' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": ControlPanelDisplay/CPL_Personalization_NoChangingLockScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
Remove-ItemProperty -Path $k -Name 'NoChangingLockScreen' -ErrorAction SilentlyContinue