none
script to retrieve last issued certificate based on cert template

    Question

  • I create demo smartcards for my company and I'm attempting to automate 90% of the process by having powershell request the certificates, find the certificate, create a folder based on the UPN and export the pfx into the folder.  I have the issuing portion done, right now I'm hung up on finding the correct method to get the certificate and export it.  The end goal is that I launch my script and at most I just need to enter the UPN of the user account, then move over to my provisioning software and put the certs on the card.

    Does anyone know how I can find the last issued certificate based on template, and UPN if precision is needed, then export it to a folder?

    Thursday, May 10, 2018 7:40 PM

All replies