Autoriser un appareil compagnon pour l’authentification secondaire
Allow companion device for secondary authentication
Explication
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.
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.
Registre
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor- Nom de la valeur
AllowSecondaryAuthenticationDevice
| État | Valeur écrite |
|---|---|
| Activé | REG_DWORD = 1 |
| Désactivé | REG_DWORD = 0 |
PowerShell
Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.
Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.
Activer
# Activer : 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 DWordDésactiver
# Désactiver : 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 DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : DeviceCredential/MSSecondaryAuthFactor_AllowSecondaryAuthenticationDevice
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\SecondaryAuthenticationFactor'
Remove-ItemProperty -Path $k -Name 'AllowSecondaryAuthenticationDevice' -ErrorAction SilentlyContinue