Forcer le verrouillage instantané : valeur de Registre ForceInstantLockOrdinateurHKLM\Software\Policies\Microsoft\HumanPresence

ID de stratégie
ForceInstantLock
Étendue
Configuration ordinateur
Pris en charge sur
Au minimum Windows 10
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Composants Windows › Présence humaine

Registre

ForceInstantLock

-Ordinateur

ForceInstantLock

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Choisissez l’une des actions suivantes
Options
EntréeValeur stockée
Prend pour valeur par défaut le choix de l’utilisateur0
Activation forcée1
Désactivation forcée2
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\HumanPresence]

; Options (en utiliser une seule)
; Prend pour valeur par défaut le choix de l’utilisateur
"ForceInstantLock"=dword:00000000
; Activation forcée
"ForceInstantLock"=dword:00000001
; Désactivation forcée
"ForceInstantLock"=dword:00000002
CMD
:: Options (en utiliser une seule)

:: Prend pour valeur par défaut le choix de l’utilisateur
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceInstantLock" /t REG_DWORD /d 0 /f
:: Activation forcée
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceInstantLock" /t REG_DWORD /d 1 /f
:: Désactivation forcée
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceInstantLock" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Force | Out-Null

# Options (en utiliser une seule)
# Prend pour valeur par défaut le choix de l’utilisateur
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceInstantLock' -PropertyType DWord -Value 0 -Force | Out-Null
# Activation forcée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceInstantLock' -PropertyType DWord -Value 1 -Force | Out-Null
# Désactivation forcée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceInstantLock' -PropertyType DWord -Value 2 -Force | Out-Null