Force Allow Lock When External Display Connected: registry value ForceAllowLockWhenExternalDisplayConnectedComputerHKLM\Software\Policies\Microsoft\HumanPresence

Policy ID
ForceAllowLockWhenExternalDisplayConnected
Scope
Computer Configuration
Supported on
At least Windows 10
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Human Presence

Registry

ForceAllowLockWhenExternalDisplayConnected

-Computer

ForceAllowLockWhenExternalDisplayConnected

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Choose one of the following actions
Options
ItemStored value
Defaults to user choice0
Forced Checked1
Forced Unchecked2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\HumanPresence]

; Options (use only one)
; Defaults to user choice
"ForceAllowLockWhenExternalDisplayConnected"=dword:00000000
; Forced Checked
"ForceAllowLockWhenExternalDisplayConnected"=dword:00000001
; Forced Unchecked
"ForceAllowLockWhenExternalDisplayConnected"=dword:00000002
CMD
:: Options (use only one)

:: Defaults to user choice
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceAllowLockWhenExternalDisplayConnected" /t REG_DWORD /d 0 /f
:: Forced Checked
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceAllowLockWhenExternalDisplayConnected" /t REG_DWORD /d 1 /f
:: Forced Unchecked
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceAllowLockWhenExternalDisplayConnected" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Force | Out-Null

# Options (use only one)
# Defaults to user choice
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceAllowLockWhenExternalDisplayConnected' -PropertyType DWord -Value 0 -Force | Out-Null
# Forced Checked
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceAllowLockWhenExternalDisplayConnected' -PropertyType DWord -Value 1 -Force | Out-Null
# Forced Unchecked
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceAllowLockWhenExternalDisplayConnected' -PropertyType DWord -Value 2 -Force | Out-Null