Do not display the lock screen
Ne pas afficher l’écran de verrouillage
Explanation
This policy setting controls whether the lock screen appears for users.
If you enable this policy setting, users that are not required to press CTRL + ALT + DEL before signing in will see their selected tile after locking their PC.
If you disable or do not configure this policy setting, users that are not required to press CTRL + ALT + DEL before signing in will see a lock screen after locking their PC. They must dismiss the lock screen using touch, the keyboard, or by dragging it with the mouse.
Ce paramètre de stratégie contrôle si l'écran de verrouillage s'affiche pour les utilisateurs.
Si vous activez ce paramètre de stratégie, les utilisateurs qui ne doivent pas appuyer sur Ctrl + Alt + Suppr avant de se connecter voient leur vignette sélectionnée après avoir verrouillé leur PC.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs qui ne doivent pas appuyer sur Ctrl + Alt + Suppr avant de se connecter verront un écran de verrouillage après avoir verrouillé leur PC. Ils doivent ignorer l'écran de verrouillage en utilisant l'interaction tactile, le clavier ou en le faisant glisser avec la souris.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Personalization- Value name
NoLockScreen
| 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_NoLockScreen
$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 'NoLockScreen' -Value 1 -Type DWord # assumed value (not defined in the ADMX)Disable
# Disable: ControlPanelDisplay/CPL_Personalization_NoLockScreen
$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 'NoLockScreen' -Value 0 -Type DWord # assumed value (not defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": ControlPanelDisplay/CPL_Personalization_NoLockScreen
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Personalization'
Remove-ItemProperty -Path $k -Name 'NoLockScreen' -ErrorAction SilentlyContinue