Allow companion device for secondary authentication
Autoriser un appareil compagnon pour l’authentification secondaire
Explanation
This policy allows users to use a companion device, such as a phone, fitness band, or IoT device, to sign on to a desktop computer running Windows 10. The companion device provides a second factor of authentication with Windows Hello.
If you enable or do not configure this policy setting, users can authenticate to Windows Hello using a companion device.
If you disable this policy, users cannot use a companion device to authenticate with Windows Hello.
Cette stratégie permet aux utilisateurs d’utiliser un appareil mobile, comme un téléphone, un appareil de suivi d’activité physique ou un appareil IoT, pour se connecter à un ordinateur de bureau exécutant Windows 10. L’appareil mobile fournit un second facteur d’authentification avec Windows Hello.
Si vous activez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs peuvent s’authentifier auprès de Windows Hello à l’aide d’un appareil mobile.
Si vous désactivez cette stratégie, les utilisateurs ne peuvent pas utiliser d’appareil mobile pour s’authentifier auprès de Windows Hello.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor- Value name
AllowSecondaryAuthenticationDevice
| 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: DeviceCredential/MSSecondaryAuthFactor_AllowSecondaryAuthenticationDevice
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSecondaryAuthenticationDevice' -Value 1 -Type DWordDisable
# Disable: DeviceCredential/MSSecondaryAuthFactor_AllowSecondaryAuthenticationDevice
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowSecondaryAuthenticationDevice' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": DeviceCredential/MSSecondaryAuthFactor_AllowSecondaryAuthenticationDevice
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor'
Remove-ItemProperty -Path $k -Name 'AllowSecondaryAuthenticationDevice' -ErrorAction SilentlyContinue