Turn on root certificate propagation from smart card
Activer la propagation de certificat racine à partir d’une carte à puce
Explanation
This policy setting allows you to manage the root certificate propagation that occurs when a smart card is inserted.
If you enable or do not configure this policy setting then root certificate propagation will occur when you insert your smart card. Note: For this policy setting to work the following policy setting must also be enabled: Turn on certificate propagation from smart card.
If you disable this policy setting then root certificates will not be propagated from the smart card.
Ce paramètre de stratégie vous permet de gérer la propagation de certificat racine lorsqu’une carte à puce est insérée.
Si vous activez ce paramètre de stratégie ou si vous ne le configurez pas, la propagation de certificat racine se produit lors de l’insertion de la carte à puce. Remarque : pour que ce paramètre de stratégie fonctionne, vous devez également activer le paramètre de stratégie suivant : Activer la propagation de certificat à partir d’une carte à puce.
Si vous désactivez ce paramètre de stratégie, les certificats racines ne sont pas propagés à partir de la carte à puce.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CertProp- Value name
EnableRootCertificatePropagation
| 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/CertPropRootEnabledString
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableRootCertificatePropagation' -Value 1 -Type DWordDisable
# Disable: Smartcard/CertPropRootEnabledString
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableRootCertificatePropagation' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Smartcard/CertPropRootEnabledString
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp'
Remove-ItemProperty -Path $k -Name 'EnableRootCertificatePropagation' -ErrorAction SilentlyContinue