title: Powershell: Find a certificate in Userstore, based on Template
body: <p>after a week of googling and reading through StackOverflow and tons of other websites, I still couldn't get the answer to my question, or the answers I found didn't work.</p>
  
  <p>I need to find the thumbprint of a certificate of the User Store. The cert has to be issued from a certain template.
  If there are more then one cert, I would need all thumbprints.</p>
  
  <p>I do have the certificate template name and the oid of it, but I still couldn't combine it to a query...</p>
  
  <p>I started with something like</p>
  
  <blockquote>
    <p>Get-ChildItem Cert:\CurrentUser\My | Where { $_.Extensions.Format(1) -like 'xyz' }</p>
  </blockquote>
  
  <p>Any thoughts?</p>
  
  <p>Thank you!</p>