Turn on convenience PIN sign-in
Activer la connexion par le code PIN d'usage
Explanation
This policy setting allows you to control whether a domain user can sign in using a convenience PIN.
If you enable this policy setting, a domain user can set up and sign in with a convenience PIN.
If you disable or don't configure this policy setting, a domain user can't set up and use a convenience PIN.
Note: The user's domain password will be cached in the system vault when using this feature.
To configure Windows Hello for Business, use the Administrative Template policies under Windows Hello for Business.
Ce paramètre de stratégie permet de déterminer si un utilisateur du domaine peut se connecter à l’aide d’un code confidentiel d’usage.
Si vous activez ce paramètre de stratégie, un utilisateur du domaine peut configurer un code confidentiel d’usage et se connecter avec ce dernier.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, un utilisateur du domaine ne peut pas configurer ni utiliser de code confidentiel d’usage.
Remarque : le mot de passe du domaine de l’utilisateur est mis en cache dans le coffre système lors de l’utilisation de cette fonctionnalité.
Pour configurer Windows Hello Entreprise, utilisez les stratégies Modèles d’administration sous Windows Hello Entreprise.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
AllowDomainPINLogon
| 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/AllowDomainPINLogon
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowDomainPINLogon' -Value 1 -Type DWordDisable
# Disable: CredentialProviders/AllowDomainPINLogon
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowDomainPINLogon' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": CredentialProviders/AllowDomainPINLogon
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'AllowDomainPINLogon' -ErrorAction SilentlyContinue