Turn off picture password sign-in
Désactiver la connexion par mot de passe image
Explanation
This policy setting allows you to control whether a domain user can sign in using a picture password.
If you enable this policy setting, a domain user can't set up or sign in with a picture password.
If you disable or don't configure this policy setting, a domain user can set up and use a picture password.
Note that the user's domain password will be cached in the system vault when using this feature.
Ce paramètre de stratégie permet de déterminer si un utilisateur du domaine peut se connecter à l’aide d’un mot de passe image.
Si vous activez ce paramètre de stratégie, un utilisateur du domaine ne peut ni configurer ni se connecter avec un code PIN.
Si vous désactivez ou ne configurez pas ce paramètre de stratégie, un utilisateur du domaine peut configurer et utiliser un mot de passe image.
Notez que 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é.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System- Value name
BlockDomainPicturePassword
| 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/BlockDomainPicturePassword
$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 'BlockDomainPicturePassword' -Value 1 -Type DWordDisable
# Disable: CredentialProviders/BlockDomainPicturePassword
$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 'BlockDomainPicturePassword' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": CredentialProviders/BlockDomainPicturePassword
$k = 'HKLM:\Software\Policies\Microsoft\Windows\System'
Remove-ItemProperty -Path $k -Name 'BlockDomainPicturePassword' -ErrorAction SilentlyContinue