Open in the explorer

Allow companion device for secondary authentication

Autoriser un appareil compagnon pour l’authentification secondaire

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Microsoft Secondary Authentication Factor FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Facteur d’authentification secondaire Microsoft
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
DeviceCredential.admx
Internal name
DeviceCredential/MSSecondaryAuthFactor_AllowSecondaryAuthenticationDevice

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.

French text from Windows 11 26H2

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
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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 DWord

Disable

# 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 DWord

Revert to "Not configured"

# Revert to "Not configured": DeviceCredential/MSSecondaryAuthFactor_AllowSecondaryAuthenticationDevice
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor'
Remove-ItemProperty -Path $k -Name 'AllowSecondaryAuthenticationDevice' -ErrorAction SilentlyContinue

Availability