Allow ECC certificates to be used for logon and authentication
Autoriser l'utilisation de certificats ECC pour l'ouverture de session et l'authentification
Explanation
This policy setting allows you to control whether elliptic curve cryptography (ECC) certificates on a smart card can be used to log on to a domain.
If you enable this policy setting, ECC certificates on a smart card can be used to log on to a domain.
If you disable or do not configure this policy setting, ECC certificates on a smart card cannot be used to log on to a domain.
Note: This policy setting only affects a user's ability to log on to a domain. ECC certificates on a smart card that are used for other applications, such as document signing, are not affected by this policy setting.
Note: If you use an ECDSA key to log on, you must also have an associated ECDH key to permit logons when you are not connected to the network.
Ce paramètre de stratégie vous permet de déterminer si les certificats ECC (chiffrement à courbe elliptique) d'une carte à puce peuvent être utilisés pour se connecter à un domaine.
Si vous activez ce paramètre de stratégie, il est possible de se connecter à un domaine au moyen des certificats ECC d'une carte à puce.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, il est impossible de se connecter à un domaine au moyen des certificats ECC d'une carte à puce.
Remarque : ce paramètre de stratégie gère uniquement la connexion à un domaine. Les certificats ECC d'une carte à puce utilisés dans d'autres buts (signature de document, par exemple) ne sont pas concernés par ce paramètre de stratégie.
Remarque : si vous utilisez une clé ECDSA pour établir la connexion, vous devez posséder une clé ECDH associée pour autoriser les ouvertures de session lorsque vous n'êtes pas connecté au réseau.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider- Value name
EnumerateECCCerts
| 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: Smartcard/EnumerateECCCerts
$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 'EnumerateECCCerts' -Value 1 -Type DWordDisable
# Disable: Smartcard/EnumerateECCCerts
$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 'EnumerateECCCerts' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Smartcard/EnumerateECCCerts
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'EnumerateECCCerts' -ErrorAction SilentlyContinue