Lock Timeout
Verrouiller le délai d’expiration
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.
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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Choose one of the following timeoutsChoisir l’un des délais d’expiration suivantsForceLockTimeoutDropdown | Drop-down listenum | ForceLockTimeout | REG_DWORD | Required · Default choice (UI): #1
|