Kae Travis

List Certificates for Local Machine and Current User

Posted on by in PowerShell

This PowerShell script will list certificates for local machine and current user certificate stores.

get-childitem -Path Cert:\ | foreach-object ({
    $location = $_.Location
    foreach($store in $_.StoreNames.Keys) {         
        get-childitem -Path "Cert:\$location\$store" | foreach-object ({
            $thumb = $($_.ThumbPrint)
            $issuer = $($_.Issuer)          
            write-host "$location $store $issuer"
        })
    }
}) 
List Certificates for Local Machine and Current User
List Certificates for Local Machine and Current User

Leave a Reply