Pour lister les certificats installés sur un postes, utilisez la ligne suivante :
Get-ChildItem cert:CurrentUserMy | fl
Ensuite, si besoin, vous pourrez automatiquement supprimer un certificat via la commande suivante :
Get-ChildItem cert:CurrentUserMy |Where-Object { $_.Subject -like ‘CN=*AncienCertificat*’ } |ForEach-Object { $store = Get-Item $_.PSParentPath $store.Open(‘ReadWrite’) $store.Remove($_) $store.Close() }
Name*
Email*
Website
Submit Comment
Δ
Code Anti-spam *