Force Instant Lock: registry value ForceInstantLockComputerHKLM\Software\Policies\Microsoft\HumanPresence

Policy ID
ForceInstantLock
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

ForceInstantLock

-Computer

ForceInstantLock

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Choose one of the following actions
Options
ItemStored value
Defaults to user choice0
Forced On1
Forced Off2
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
"ForceInstantLock"=dword:00000000
; Forced On
"ForceInstantLock"=dword:00000001
; Forced Off
"ForceInstantLock"=dword:00000002
CMD
:: Options (use only one)

:: Defaults to user choice
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceInstantLock" /t REG_DWORD /d 0 /f
:: Forced On
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceInstantLock" /t REG_DWORD /d 1 /f
:: Forced Off
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceInstantLock" /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 'ForceInstantLock' -PropertyType DWord -Value 0 -Force | Out-Null
# Forced On
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceInstantLock' -PropertyType DWord -Value 1 -Force | Out-Null
# Forced Off
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceInstantLock' -PropertyType DWord -Value 2 -Force | Out-Null