Back in August 2012, I posted about getting certificates bound to Office Communication Server 2007 interfaces using PSExec. As much as I respect MarkRuss and SysInternals, PSExec is quite fiddly. We have PSH V2 in our lab (finally!), so a coworker (hi, Keith!) paved the way for using WinRM.
Now, getting OCS 2007 certs is quite painful because some are exposed through WMI, but only on the local box. Get-WmiObject –ComputerName OCS2007Server1 <etc.> doesn’t work. Previously, enter PSExec. Now, enter WinRm.
The more eagle-eyed among you will see that the wrapper functions (Get-AccessEdgeServerExternalCert, etc.) didn’t change much, save not having to pass in a $psExecPath. Get-OCSCert is where all the fun lives.