Open in the explorer

Filter duplicate logon certificates

Filtrer les certificats d’ouverture de session dupliqués

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/FilterDuplicateCerts

Explanation

This policy settings lets you configure if all your valid logon certificates are displayed.

During the certificate renewal period, a user can have multiple valid logon certificates issued from the same certificate template. This can cause confusion as to which certificate to select for logon. The common case for this behavior is when a certificate is renewed and the old one has not yet expired. Two certificates are determined to be the same if they are issued from the same template with the same major version and they are for the same user (determined by their UPN).

If there are two or more of the "same" certificate on a smart card and this policy is enabled then the certificate that is used for logon on Windows 2000, Windows XP, and Windows 2003 Server will be shown, otherwise the the certificate with the expiration time furthest in the future will be shown. Note: This setting will be applied after the following policy: "Allow time invalid certificates"

If you enable or do not configure this policy setting, filtering will take place.

If you disable this policy setting, no filtering will take place.

French text from Windows 11 26H2

Ce paramètre de stratégie vous permet de configurer l’affichage ou non des certificats d’ouverture de session valides.

Au cours de la période de renouvellement des certificats, un utilisateur peut disposer de plusieurs certificats d’ouverture de session valides émis à partir du même modèle de certificat. Cela peut entraîner une confusion quant au certificat à sélectionner pour l’ouverture de session. Ce comportement se produit généralement lorsqu’un certificat est renouvelé et que l’ancien n’a pas encore expiré. Deux certificats sont considérés identiques s’ils sont émis à partir du même modèle avec la même version principale et s’ils sont destinés au même utilisateur, déterminé par son nom d’utilisateur principal (UPN).

S’il existe plusieurs certificats sur une carte à puce et si cette stratégie est activée, le certificat utilisé pour l’ouverture de session sur Windows 2000, Windows XP et Windows 2003 Server s’affiche. Sinon, le certificat avec la date d’expiration la plus lointaine s’affiche. Remarque : ce paramètre s’applique après la stratégie suivante : « Autoriser les certificats dont le délai de validité a expiré ».

Si vous activez ce paramètre de stratégie ou si vous ne le configurez pas, le filtrage a lieu.

Si vous désactivez ce paramètre de stratégie, le filtrage n’a pas lieu.

Registry

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

Disable

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

Revert to "Not configured"

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

Availability