Turn on security key sign-in
Activer la connexion par clé de sécurité
Explanation
This policy setting allows you to control whether users can sign in using external security keys.
If you enable this policy setting, users can sign in with external security keys.
If you disable or don't configure this policy setting, users can't sign in with external security keys.
Ce paramètre de stratégie vous permet de contrôler si les utilisateurs peuvent se connecter à l’aide de clés de sécurité externes.
Si vous activez ce paramètre de stratégie, les utilisateurs peuvent se connecter avec des clés de sécurité externes.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les utilisateurs ne peuvent pas se connecter avec des clés de sécurité externes.
Use cases
Allows Windows sign-in with a FIDO2 security key. It is the option Microsoft cites for users who sign in to many devices (support technicians) or beyond the limit of 10 Windows Hello enrolments per device.
The setting must be enabled for keys to work at sign-in: without it they are not accepted.
Microsoft source: Common questions about Windows Hello for Business
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\FIDO- Value name
EnableFIDODeviceLogon
| 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: CredentialProviders/AllowSecurityKeySignIn
$k = 'HKLM:\Software\Policies\Microsoft\FIDO'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableFIDODeviceLogon' -Value 1 -Type DWordDisable
# Disable: CredentialProviders/AllowSecurityKeySignIn
$k = 'HKLM:\Software\Policies\Microsoft\FIDO'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableFIDODeviceLogon' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": CredentialProviders/AllowSecurityKeySignIn
$k = 'HKLM:\Software\Policies\Microsoft\FIDO'
Remove-ItemProperty -Path $k -Name 'EnableFIDODeviceLogon' -ErrorAction SilentlyContinue