Configurar a limpeza do certificado raiz: valor do Registro RootCertificateCleanupOptionComputadorHKLM\SOFTWARE\Policies\Microsoft\Windows\CertProp

ID da política
CertPropRootCleanupString
Escopo
Configuração do Computador
Compatível com
Windows Vista ou posterior
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Componentes do Windows › Cartão inteligente

Registro

RootCertificateCleanupOption

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Opções de limpeza de certificado raiz
Opções
ItemValor armazenado
Sem limpeza0
Limpar certificados ao remover o cartão inteligente1
Limpar certificados no logoff2
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CertProp]

; Opções (use apenas uma)
; Sem limpeza
"RootCertificateCleanupOption"=dword:00000000
; Limpar certificados ao remover o cartão inteligente
"RootCertificateCleanupOption"=dword:00000001
; Limpar certificados no logoff
"RootCertificateCleanupOption"=dword:00000002
CMD
:: Opções (use apenas uma)

:: Sem limpeza
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CertProp" /v "RootCertificateCleanupOption" /t REG_DWORD /d 0 /f
:: Limpar certificados ao remover o cartão inteligente
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CertProp" /v "RootCertificateCleanupOption" /t REG_DWORD /d 1 /f
:: Limpar certificados no logoff
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CertProp" /v "RootCertificateCleanupOption" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp' -Force | Out-Null

# Opções (use apenas uma)
# Sem limpeza
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp' -Name 'RootCertificateCleanupOption' -PropertyType DWord -Value 0 -Force | Out-Null
# Limpar certificados ao remover o cartão inteligente
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp' -Name 'RootCertificateCleanupOption' -PropertyType DWord -Value 1 -Force | Out-Null
# Limpar certificados no logoff
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\CertProp' -Name 'RootCertificateCleanupOption' -PropertyType DWord -Value 2 -Force | Out-Null