Getting OCS 2007 Certs through WMI

Getting OCS 2007 Certs through WMI

We recently had an interesting adventure where we needed to do an audit of the certificates used by various OCS servers. In this case, scanning the computer's cert store wasn't sufficient - we needed to see which cert was bound to what interface. The OCS Snap-In under compmgmt.msc provides this information, but GUIs don't scale, and they don't dump data into Excel sheets. PowerShell to the rescue.