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](https://www.alkanesolutions.co.uk/wp-content/uploads/2023/12/list-certificates-for-local-machine-and-current-user-300x169.png)
![List Certificates for Local Machine and Current User](https://www.alkanesolutions.co.uk/wp-content/themes/twentyeleven-child/images/application-packaging-services-blog.png)