Configure dynamic lock factors
Configurer les facteurs de verrouillage dynamique
Explanation
Configure a comma separated list of signal rules in the form of xml for each signal type.
If you enable this policy setting, these signal rules will be evaluated to detect user absence and automatically lock the device.
If you disable or do not configure this policy setting, users can continue to lock with existing locking options.
For more information see: https://go.microsoft.com/fwlink/?linkid=849684
Configurez une liste séparée par des virgules pour les règles de signal, avec un fichier XML par signal.
Si ce paramètre de stratégie est activé, ces règles de signal seront évaluées pour détecter l'absence de l'utilisateur et automatiquement verrouiller l'appareil.
Si ce paramètre de stratégie est désactivé ou n'est pas configuré, les utilisateurs pourront continuer à utiliser les options de déverrouillage existantes.
Pour plus d'informations, voir : https://go.microsoft.com/fwlink/?linkid=849684
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\PassportForWork\DynamicLock- Value name
DynamicLock
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: Passport/MSPassport_UseDynamicLock
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\DynamicLock'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DynamicLock' -Value 1 -Type DWord
# Signal rules for dynamic lock
Set-ItemProperty -Path $k -Name 'Plugins' -Value '<value>' -Type StringDisable
# Disable: Passport/MSPassport_UseDynamicLock
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\DynamicLock'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DynamicLock' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Passport/MSPassport_UseDynamicLock
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\PassportForWork\DynamicLock'
Remove-ItemProperty -Path $k -Name 'DynamicLock' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'Plugins' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Signal rules for dynamic lockRègles de signal pour le verrouillage dynamiqueMSPassport_UseDynamicLock_Plugins | Text boxtext | Plugins | REG_SZ | Default (UI): <rule schemaVersion="1.0"> <signal type="bluetooth" scenario="Dynamic Lock" classOfDevice="512" rssiMin="-10" rssiMaxDelta="-10"/> </rule> |