I have some certificates on Windows. These certs has different templates.
I can get thumbprints:
$Certificates = get-childitem cert:LocalMachineMy
I can get templates:
$Template = ($Certificates.extensions | where-object{$_.oid.FriendlyName -match "Certificate Template Information"}).format(0)
So I want to automate deleting cert that has specific template according to thumbprint with powershell.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…