共用方式為


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

  • Anonymous
    May 22, 2014
    Excellent! Very helpful. Thanks!
  • Anonymous
    September 15, 2014
    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?
    • Anonymous
      November 30, 2016
      Get-ChildItem cert: -Recurse | where{ $_.Thumbprint –like „ABDCEF *“ } | Select Thumbprint
  • Anonymous
    September 15, 2014
    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.
  • Anonymous
    December 02, 2015
    Can we get thsi info for multiple remote systems from an input file
  • Anonymous
    March 07, 2016
    Thanks a lot, this was very helpful.
  • Anonymous
    July 17, 2017
    The command only works because Thumbprint is the first column/field. A more correct way would be: Get-ChildItem -path cert:\LocalMachine\my | Select ThumbprintTo get all properties for certs, you can use this command:Get-ChildItem -path cert:\LocalMachine\my | fl *