Open in the explorer

Password protect the screen saver

Un mot de passe protège l’écran de veille

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 2000 Service Pack 1 FR: Au minimum Windows 2000 Service Pack 1
ADMX file
ControlPanelDisplay.admx
Internal name
ControlPanelDisplay/CPL_Personalization_ScreenSaverIsSecure

Explanation

Determines whether screen savers used on the computer are password protected.

If you enable this setting, all screen savers are password protected. If you disable this setting, password protection cannot be set on any screen saver.

This setting also disables the "Password protected" checkbox on the Screen Saver dialog in the Personalization or Display Control Panel, preventing users from changing the password protection setting.

If you do not configure this setting, users can choose whether or not to set password protection on each screen saver.

To ensure that a computer will be password protected, enable the "Enable Screen Saver" setting and specify a timeout via the "Screen Saver timeout" setting.

Note: To remove the Screen Saver dialog, use the "Prevent changing Screen Saver" setting.

French text from Windows 11 26H2

Détermine si les écrans de veille utilisés sur l’ordinateur sont protégés par un mot de passe.

Si vous activez ce paramètre, tous les écrans de veille sont protégés par un mot de passe. Si vous désactivez ce paramètre, la protection par mot de passe ne peut être configurée sur aucun écran de veille.

Ce paramètre désactive également la case à cocher Protégé par mot de passe dans la boîte de dialogue Écran de veille de l’application Personnalisation ou Affichage du Panneau de configuration, ce qui empêche les utilisateurs de modifier le paramètre de protection par mot de passe.

Si vous ne configurez pas ce paramètre, les utilisateurs peuvent choisir s’ils souhaitent ou non activer la protection par mot de passe sur chaque écran de veille.

Pour vous assurer qu’un ordinateur sera protégé par un mot de passe, activez le paramètre Activer l’écran de veille et spécifiez un délai d’attente à l’aide du paramètre Dépassement du délai d’expiration de l’écran de veille.

Remarque : pour supprimer la boîte de dialogue Écran de veille, utilisez le paramètre Empêcher de modifier l’écran de veille.

Use cases

Requires every screen saver to ask for a password on return, and greys out the “Password protected” checkbox so users cannot clear it. Disabling the policy does the opposite and forbids password protection altogether; when not configured, each user decides.

On its own it is not enough: locking only happens if the screen saver actually starts. Microsoft says to also enable “Enable Screen Saver” and to set a delay with “Screen Saver timeout”; without them, a machine left open does not lock.

Microsoft source: Policy CSP - ADMX_ControlPanelDisplay

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Control Panel\Desktop
Value name
ScreenSaverIsSecure
StateValue written
EnabledREG_SZ = 1
DisabledREG_SZ = 0

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.

Enable

# Enable: ControlPanelDisplay/CPL_Personalization_ScreenSaverIsSecure
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Control Panel\Desktop'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScreenSaverIsSecure' -Value '1' -Type String

Disable

# Disable: ControlPanelDisplay/CPL_Personalization_ScreenSaverIsSecure
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Control Panel\Desktop'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'ScreenSaverIsSecure' -Value '0' -Type String

Revert to "Not configured"

# Revert to "Not configured": ControlPanelDisplay/CPL_Personalization_ScreenSaverIsSecure
$k = 'HKCU:\Software\Policies\Microsoft\Windows\Control Panel\Desktop'
Remove-ItemProperty -Path $k -Name 'ScreenSaverIsSecure' -ErrorAction SilentlyContinue

Availability