Ouvrir dans l'explorateur

Ne pas autoriser le renvoi de codes confidentiels en texte brut par le Gestionnaire d’informations d’identification

Prevent plaintext PINs from being returned by Credential Manager

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Carte à puce EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Smart Card
Pris en charge sur
Au minimum Windows Vista Service Pack 1 EN : At least Windows Vista Service Pack 1
Fichier ADMX
Smartcard.admx
Nom interne
Smartcard/DisallowPlaintextPin

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie interdit le renvoi des codes PIN en texte brut par le Gestionnaire d’informations d’identification.

Si vous activez ce paramètre de stratégie, alors le Gestionnaire d’informations d’identification ne renvoie pas de code PIN en texte brut.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, alors le Gestionnaire d’informations d’identification peut renvoyer des codes PIN en texte brut.

Remarque : l’activation de ce paramètre de stratégie peut empêcher le fonctionnement de certaines cartes à puce avec Windows. Renseignez-vous auprès du fabricant de votre carte à puce en cas de doute sur l’utilisation de ce paramètre de stratégie.

This policy setting prevents plaintext PINs from being returned by Credential Manager.

If you enable this policy setting, Credential Manager does not return a plaintext PIN.

If you disable or do not configure this policy setting, plaintext PINs can be returned by Credential Manager.

Note: Enabling this policy setting could prevent certain smart cards from working on Windows. Please consult your smart card manufacturer to find out whether you will be affected by this policy setting.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider
Nom de la valeur
DisallowPlaintextPin
ÉtatValeur é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 : Smartcard/DisallowPlaintextPin
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisallowPlaintextPin' -Value 1 -Type DWord

Désactiver

# Désactiver : Smartcard/DisallowPlaintextPin
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisallowPlaintextPin' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : Smartcard/DisallowPlaintextPin
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'DisallowPlaintextPin' -ErrorAction SilentlyContinue

Disponibilité