Scripts

Getting Certificate Information

I spend a lot of time doing Certficate stuff.  So here are two one liners to help.  The first is a generic script.  you can modify it pretty easy to do alerting or whatever.  the second is specific to Skype for Business

Get-ChildItem -recurse -path cert:\localmachine\my | select Issuer,NotAfter,NotBefore,SerialNumber,Subject,Thumbprint,@{N=”DNSNameList”;e={$_.DNSNameList}} | export-csv c:\source\certs2.csv -NoTypeInformation

Get-CsCertificate | select *,@{n=”SAN”;e={$_.AlternativeNames}} | export-csv c:\source\certs.csv -NoTypeInformation

4 thoughts on “Getting Certificate Information

Leave a Reply

Your email address will not be published. Required fields are marked *