Open in the explorer

Prevent enabling lock screen slide show

Empêcher l’activation du diaporama de l’écran de verrouillage

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Control Panel › Personalization FR: Configuration ordinateur › Stratégies › Modèles d'administration › Panneau de configuration › Personnalisation
Supported on
At least Windows Server 2012 R2, Windows 8.1 or Windows RT 8.1 FR: Au minimum Windows Server 2012 R2, Windows 8.1 ou Windows RT 8.1
ADMX file
ControlPanelDisplay.admx
Internal name
ControlPanelDisplay/CPL_Personalization_NoLockScreenSlideshow

Explanation

Disables the lock screen slide show settings in PC Settings and prevents a slide show from playing on the lock screen.

By default, users can enable a slide show that will run after they lock the machine.

If you enable this setting, users will no longer be able to modify slide show settings in PC Settings, and no slide show will ever start.

French text from Windows 11 26H2

Désactive les paramètres de diaporama de l’écran de verrouillage dans l’application Paramètres du PC et empêche la lecture d’un diaporama sur l’écran de verrouillage.

Par défaut, les utilisateurs peuvent activer un diaporama qui s’exécutera après le verrouillage de l’ordinateur.

Si vous activez ce paramètre, les utilisateurs ne peuvent plus modifier les paramètres du diaporama dans l’application Paramètres du PC et aucun diaporama ne démarrera.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization
Value name
NoLockScreenSlideshow
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_NoLockScreenSlideshow
$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 'NoLockScreenSlideshow' -Value 1 -Type DWord  # assumed value (not defined in the ADMX)

Disable

# Disable: ControlPanelDisplay/CPL_Personalization_NoLockScreenSlideshow
$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 'NoLockScreenSlideshow' -Value 0 -Type DWord  # assumed value (not defined in the ADMX)

Revert to "Not configured"

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

Availability