Get List of Certificates in Windows PowerShell


How to get a list of certificate in a certificate store in Windows PowerShell?\n



\nThe easiest way to get a list of certificates in a certificate store with Windows PowerShell\nis to use the "dir" command with the "Cert:" path name.\n


The following example lists all certificates in the "Disallowed" certificate store:\n

PS C:\\fyicenter> cd Cert:\nPS Cert:\\> cd localmachine\nPS Cert:\\localmachine> cd disallowed\nPS Cert:\\localmachine\\disallowed> dir\n\n    Directory: Microsoft.PowerShell.Security\\Certificate::localmachine\\disallowed\n\nThumbprint    Subject\n----

2016-07-31, 759👍, 0💬