I am working on the code below. I am trying to determine why the result is different, given the script command line is the same.
Executed Locally from SVRAD1:
Get-ChildItem Cert:\ -ExpiringInDays 365 -Recurse | where-object {$_.subject -like "*Microsoft*"} | Select-Object ThumbPrint, FriendlyName, Subject, NotAfter, HasPrivateKey, Issuer | ogv
The result shows 4x SSL Certs:
Executed Locally from my laptop against SVRAD1:
$DCList = 'SVRAD1'
Invoke-Command -Computer $DCList {
Get-ChildItem Cert:\ -ExpiringInDays 365 -Recurse | where-object {$_.subject -like "*Microsoft*"} | Select-Object ThumbPrint, FriendlyName, Subject, NotAfter, HasPrivateKey, Issuer
} | ogv
The result shows only 2x SSL Certs:

