Hi,
Thanks for your question.
1. You can try to enable the RPC rule on the inbound firewall. It will then allow you to query what hotfixes have been applied.
2. Try to use try/catch for error handling.
Try {
Get-Hotfix -id KB3065987 -ErrorAction Stop
}
Catch [System.Management.Automation.RuntimeException]
{ Write-Output "KB3065987 Not Installed"
Continue
}
Just try to solve it.
Best Regards,
Lee
Just do it.