Open in the explorer

Force the reading of all certificates from the smart card

Forcer la lecture de tous les certificats de la carte à puce

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Smart Card FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Carte à puce
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Smartcard.admx
Internal name
Smartcard/ForceReadingAllCertificates

Explanation

This policy setting allows you to manage the reading of all certificates from the smart card for logon.

During logon Windows will by default only read the default certificate from the smart card unless it supports retrieval of all certificates in a single call. This setting forces Windows to read all the certificates from the card. This can introduce a significant performance decrease in certain situations. Please contact your smart card vendor to determine if your smart card and associated CSP supports the required behavior.

If you enable this setting, then Windows will attempt to read all certificates from the smart card regardless of the feature set of the CSP.

If you disable or do not configure this setting, Windows will only attempt to read the default certificate from those cards that do not support retrieval of all certificates in a single call. Certificates other than the default will not be available for logon.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de gérer la lecture de tous les certificats de la carte à puce pour l’ouverture de session.

Au cours de l’ouverture de session, par défaut, seul le certificat par défaut de la carte à puce est lu, sauf si cette dernière prend en charge la récupération de tous les certificats dans un seul appel. Ce paramètre force la lecture de tous les certificats de la carte. Cela peut entraîner une baisse des performances dans certaines situations. Contactez le fournisseur de la carte à puce pour déterminer si votre carte à puce, ainsi que le fournisseur de services de chiffrement associé, prend en charge le comportement requis.

Si vous activez ce paramètre, Windows tente de lire tous les certificats de la carte à puce, quel que soit le jeu de fonctionnalités du fournisseur de services de chiffrement.

Si vous désactivez ce paramètre ou si vous ne le configurez pas, Windows tente uniquement de lire le certificat par défaut des cartes qui ne prennent pas en charge la récupération de tous les certificats dans un seul appel. Les certificats autres que le certificat par défaut ne sont pas disponibles pour l’ouverture de session.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider
Value name
ForceReadingAllCertificates
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: Smartcard/ForceReadingAllCertificates
$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 'ForceReadingAllCertificates' -Value 1 -Type DWord

Disable

# Disable: Smartcard/ForceReadingAllCertificates
$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 'ForceReadingAllCertificates' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Smartcard/ForceReadingAllCertificates
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'ForceReadingAllCertificates' -ErrorAction SilentlyContinue

Availability