Avatar of Anne Maire Fierst
Anne Maire Fierst
 asked on

Extract Certificate Info via a Script

Hi everyone.  Hope everyone is staying well during this global health crisis!  Okay my question.  I have been asked to write a script that extracts the expiration date for a particular certificate on a user's machine.  I'm able to run certmgr.msc, go under the "Personal" folder, click on "Certificates" and see my own certificates, but I want to write some sort of script that can run on all machines in my organization to extract the expiration date for a specific certificate (let's call it "CertificateABC".   Does anyone have any idea how I can do that?  Thanks in advance!
Windows 10* certificate services* certmgr.msc

Avatar of undefined
Last Comment
Anne Maire Fierst

8/22/2022 - Mon
Pete Long

 - Would a better solution not be to interrogate  'issued certificates" on your CA Server(s)?

Anne Maire Fierst

Hi Pete, I think the certificate is on a person's laptop, not on a server...I don't think our admin can access them via a server, which is why he asked me to write a script that each person could run on their own machine.  I was hoping I could grab some info from the registry, but I can't find in the registry what certmgr.msc is telling me.
Anne Maire Fierst

View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck