title: How can I access Certificate ExtendedProperties using powershell?
body: <p>If you open the properties window of a certificate in the certificate manager in windows you will see both a friendlyname and description field.  I'm trying to get to the description field programatically via powershell.</p>
  
  <p>When accessing the certificates via powershell's certificate provider cert: you get an object that only exposes the FriendlyName as Name.</p>
  
  <p>As far as I can tell, this is all a wrapper to the CAPICOM APIs.  Neither the description or the get_extendedproperties method are exposed.</p>
  
  <p>How can I access the description field problematically via powershell?  Please note that I tried to simply do</p>
  
  <pre><code>$store = new-object -com "CAPICOM.Store" 
  </code></pre>
  
  <p>to use the CAPICOM api directly ala <a href="http://www.derkeiler.com/Newsgroups/microsoft.public.platformsdk.security/2006-04/msg00081.html" rel="nofollow noreferrer">This Link</a>, but I get a 80040154 error on my 64bit Win2K8 box.</p>