en-US windows computer

Force Allow Lock When External Display Connected

Verified with Windows 11 26H2 — updated on July 30, 2026 Supported on: At least Windows 10

Windows 11 26H2

Path in the GPO console

Computer Configuration\Administrative Templates\Windows Components\Human Presence

Registry

HKLM Software\Policies\Microsoft\HumanPresence
Value name:
ForceAllowLockWhenExternalDisplayConnected

MDM / Intune (CSP)

./Device/Vendor/MSFT/Policy/Config/HumanPresence/ForceAllowLockWhenExternalDisplayConnected
Device Since Windows 11, version 24H2 [10.0.26100] and later Official mapping (Microsoft Learn)

Microsoft Learn documentation Mapping data: Microsoft Learn (CC BY 4.0)

CSP values
  • 2 - ForcedUnchecked.
  • 1 - ForcedChecked.
  • 0 (Default) - DefaultToUserChoice.

Options

Choose one of the following actions
ForceAllowLockWhenExternalDisplayConnected enum
  • 0 Defaults to user choice default
  • 1 Forced Checked
  • 2 Forced Unchecked

Description

Determines whether Allow Lock on Leave When External Display Connected checkbox is forced checked/unchecked by the MDM policy. The user will not be able to change this setting and the checkbox in the UI will be greyed out.

Export Builder

BETA

Configure the state, scope and options, then generate .reg, PowerShell, Intune and SCCM outputs — or add the setting to a multi-setting collection.

These exports write the registry — this is not a managed GPO. ⓘ

.reg file

Windows Registry Editor Version 5.00

; Exported from gporais.com
; Policy: Force Allow Lock When External Display Connected
; State: Enabled
; Supported on: At least Windows 10

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\HumanPresence]
"ForceAllowLockWhenExternalDisplayConnected"=dword:00000001
"ForceAllowLockWhenExternalDisplayConnected"=dword:00000000
More formats (PowerShell, Intune, SCCM)

PowerShell

# Exported from gporais.com
# Policy: Force Allow Lock When External Display Connected
# State: Enabled
# Supported on: At least Windows 10

$path = 'HKLM:\Software\Policies\Microsoft\HumanPresence'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'ForceAllowLockWhenExternalDisplayConnected' -Value 1 -Type DWord
Set-ItemProperty -Path $path -Name 'ForceAllowLockWhenExternalDisplayConnected' -Value 0 -Type DWord

Building a multi-setting collection? Add this setting and generate combined .reg / PowerShell / GPO scripts.

Open the Builder

Embed this policy on your site

What to embed
Theme

Adds one script line: the theme follows your site’s appearance and the height fits the content. If your site blocks scripts, the embed follows the visitor’s system theme.

Preview