Open in the explorer

Prevent enabling lock screen camera

Empêcher l’activation de l’appareil photo 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_NoLockScreenCamera

Explanation

Disables the lock screen camera toggle switch in PC Settings and prevents a camera from being invoked on the lock screen.

By default, users can enable invocation of an available camera on the lock screen.

If you enable this setting, users will no longer be able to enable or disable lock screen camera access in PC Settings, and the camera cannot be invoked on the lock screen.

French text from Windows 11 26H2

Désactive le bouton bascule de l’appareil photo de l’écran de verrouillage dans l’application Paramètres du PC et empêche l’appel d’un appareil photo sur l’écran de verrouillage.

Par défaut, les utilisateurs peuvent activer l’appel d’un appareil photo disponible sur l’écran de verrouillage.

Si vous activez ce paramètre, les utilisateurs ne peuvent plus activer ou désactiver l’accès à l’appareil photo de l’écran de verrouillage dans l’application Paramètres du PC, et l’appareil photo ne peut pas être appelé sur l’écran de verrouillage.

Registry

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

Disable

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

Revert to "Not configured"

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

Availability