Lock Timeout: registry value ForceLockTimeoutComputerHKLM\Software\Policies\Microsoft\HumanPresence

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

ForceLockTimeout

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Choose one of the following timeouts
Options
ItemStored value
Defaults to user choice0
Immediate1
10 seconds10
30 seconds30
2 minutes120
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
"ForceLockTimeout"=dword:00000000
; Immediate
"ForceLockTimeout"=dword:00000001
; 10 seconds
"ForceLockTimeout"=dword:0000000a
; 30 seconds
"ForceLockTimeout"=dword:0000001e
; 2 minutes
"ForceLockTimeout"=dword:00000078
CMD
:: Options (use only one)

:: Defaults to user choice
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceLockTimeout" /t REG_DWORD /d 0 /f
:: Immediate
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceLockTimeout" /t REG_DWORD /d 1 /f
:: 10 seconds
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceLockTimeout" /t REG_DWORD /d 10 /f
:: 30 seconds
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceLockTimeout" /t REG_DWORD /d 30 /f
:: 2 minutes
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceLockTimeout" /t REG_DWORD /d 120 /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 'ForceLockTimeout' -PropertyType DWord -Value 0 -Force | Out-Null
# Immediate
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceLockTimeout' -PropertyType DWord -Value 1 -Force | Out-Null
# 10 seconds
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceLockTimeout' -PropertyType DWord -Value 10 -Force | Out-Null
# 30 seconds
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceLockTimeout' -PropertyType DWord -Value 30 -Force | Out-Null
# 2 minutes
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceLockTimeout' -PropertyType DWord -Value 120 -Force | Out-Null