November 27th, 2013

PowerTip: Use PowerShell to Discover Certificate Thumbprints

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to discover certificate thumbprints.

Hey, Scripting Guy! Question How can I use Windows PowerShell to discover the thumbprints of certificates that are installed on my machine?

Hey, Scripting Guy! Answer Interrogate the certificate store, which is exposed as the cert: drive:

Get-ChildItem -Path cert: -Recurse | select Subject, FriendlyName, Thumbprint | Format-List

You will see a lot of entries like this:

Subject      : OU=Go Daddy Class 2 Certification Authority, O=”The Go Daddy Group, Inc.”, C=US

FriendlyName : Go Daddy Class 2 Certification Authority

Thumbprint   : 2796BAE63F1801E277261BA0D77770028F20EEE4

Filter the results by using Path or Where-Object to discover the certificate you need.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.