title: Powershell - Deleting certificate from Store
body: <p>I want to delete testcertificate from the Personal folder under my Computer account. I want to do this by Issued by field. Not the name of the certificate.
  This is what i got so far:</p>
  
  <pre><code>  $issuername = "domain-Issuing-CA"
    get-item cert:\\LocalMachine\\My\\* | foreach { if($_.issuer.Contains($issuername)) { remove-item $_ }}
  </code></pre>
  
  <p>So basicly what i thought would happen, is look under the localmachine account under storename My (which is Personal) and then go through each certificate if issuer contains my set value on top.</p>
  
  <p>But its not finding it, but i am really not sure if issuer.Contains is enough either, i have this working in C# but im new to Powershell.</p>