Allow signature keys valid for Logon
Autoriser les clés de signature valide pour l’ouverture de session
Explanation
This policy setting lets you allow signature key-based certificates to be enumerated and available for logon.
If you enable this policy setting then any certificates available on the smart card with a signature only key will be listed on the logon screen.
If you disable or do not configure this policy setting, any available smart card signature key-based certificates will not be listed on the logon screen.
Ce paramètre de stratégie vous permet d’autoriser l’énumération et l’utilisation de certificats basés sur des clés de signature pour l’ouverture de session.
Si vous activez ce paramètre de stratégie, les certificats basés sur des clés de signature pour carte à puce sont listés dans l’écran d’ouverture de session.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les certificats basés sur des clés de signature pour carte à puce ne sont pas listés dans l’écran d’ouverture de session.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider- Value name
AllowSignatureOnlyKeys
| 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/AllowSignatureOnlyKeys
$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 'AllowSignatureOnlyKeys' -Value 1 -Type DWordDisable
# Disable: Smartcard/AllowSignatureOnlyKeys
$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 'AllowSignatureOnlyKeys' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Smartcard/AllowSignatureOnlyKeys
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'AllowSignatureOnlyKeys' -ErrorAction SilentlyContinue