Open in the explorer

Lock Timeout

Verrouiller le délai d’expiration

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Human Presence FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Présence humaine
Supported on
At least Windows 10 FR: Au minimum Windows 10
ADMX file
Sensors.admx
Internal name
Sensors/ForceLockTimeout

Explanation

Determines the timeout for Lock on Leave forced by the MDM policy. The user will be unable to change this setting and the toggle in the UI will be greyed out.

French text from Windows 11 26H2

Détermine le délai d’expiration du verrouillage par éloignement imposé par la stratégie MDM. L’utilisateur ne pourra pas modifier ce paramètre et le bouton bascule de l’interface utilisateur sera en grisé.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\HumanPresence
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

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: Sensors/ForceLockTimeout
$k = 'HKLM:\Software\Policies\Microsoft\HumanPresence'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Choose one of the following timeouts
# Possible options:
#   Defaults to user choice = 0
#   Immediate = 1
#   10 seconds = 10
#   30 seconds = 30
#   2 minutes = 120
Set-ItemProperty -Path $k -Name 'ForceLockTimeout' -Value 1 -Type DWord

Disable

# Disable: Sensors/ForceLockTimeout
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Sensors/ForceLockTimeout
$k = 'HKLM:\Software\Policies\Microsoft\HumanPresence'
Remove-ItemProperty -Path $k -Name 'ForceLockTimeout' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Choose one of the following timeoutsChoisir l’un des délais d’expiration suivantsForceLockTimeoutDropdownDrop-down listenumForceLockTimeoutREG_DWORD
Required · Default choice (UI): #1
LabelValue
Defaults to user choiceREG_DWORD = 0
ImmediateREG_DWORD = 1
10 secondsREG_DWORD = 10
30 secondsREG_DWORD = 30
2 minutesREG_DWORD = 120

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016