Verifying the private key property for a certificate in the store

I was recently asked as to how to figure out if the private key associated with a certificate is exportable or not. Typically the following code should work: >$cert = (dir cert:\localmachine\my)[0]>$cert.PrivateKey.CspKeyContainerInfo.Exportable  However, at times you would notice that $cert.PrivateKey is really null. However if you run “certutil -v -verify My 0”, you can observe…

1