Powershell to get current certificates in the servers store
invoke-command -ComputerName $ComputerName -command {
Get-ChildItem Cert:\LocalMachine\My |
where-object subject -like "*sh*" |
where-object notafter -gt $(get-date)
} |
select pscomputername,
@{l='path';e={$_.psparentpath.replace('Microsoft.PowerShell.Security\Certificate::','')}},
thumbprint,
subject,
notafter,
name