title: How can I delete certificate that has specific template?
body: <p>I have some certificates on Windows. These certs has different templates.</p>
  
  <p>I can get thumbprints:</p>
  
  <pre><code>$Certificates = get-childitem cert:\LocalMachine\My
  </code></pre>
  
  <p>I can get templates:</p>
  
  <pre><code>$Template = ($Certificates.extensions | where-object{$_.oid.FriendlyName -match "Certificate Template Information"}).format(0)
  </code></pre>
  
  <p>So I want to automate deleting cert that has specific template according to thumbprint with powershell.</p>