Get Certificate thumbprint using PowerShell


In order to get a list of certificates and their thumbprints, you can use the following PowerShell command:

Get-ChildItem -path cert:\LocalMachine\My

This will list all certificates and thumbprints the My store:

image


Comments (7)

  1. sam says:

    Excellent! Very helpful. Thanks!

  2. Nathan says:

    This works in my Windows 8.0 laptop, not in the Windows Server 2008 system I want to use it on. I had hoped to iterate through this for all certificate stores and then find a match for a certificate deployed such that I can see the thumbprint but not the
    CN, etc, pertaining to the cert (don’t ask, it’s a weird app…).

    Is there any way to do this in Server 2008?

    1. Rob says:

      Get-ChildItem cert: -Recurse | where{ $_.Thumbprint –like „ABDCEF *“ } | Select Thumbprint

  3. Nathan says:

    Follow-up comment. The Server 2008 system gets part of the way there. It tells me the following childitems exist from Cert:Localmachine – I just can’t seem to get any deeper… Powershell returns only a null result.

  4. jahafar says:

    Can we get thsi info for multiple remote systems from an input file

  5. PC says:

    Thanks a lot, this was very helpful.

  6. KERR says:

    The command only works because Thumbprint is the first column/field. A more correct way would be:

    Get-ChildItem -path cert:\LocalMachine\my | Select Thumbprint

    To get all properties for certs, you can use this command:

    Get-ChildItem -path cert:\LocalMachine\my | fl *

Skip to main content