Cole_McDonald
6 years agoProfessor
winCertCheck DS comes deactivated...
POSH Code looks sound on it, but troubleshooting shows it will only grab the cert info from the collectors as it's testing the current hostname against the collector name to see if they match, the hostname is being gathered from where the script is running, which is always the Collector... so it will always only return info on the collectors as the if/then never fails to the second state.
I'm fixing this in our environment after figuring out the correct sequence of tests to verify local or remote run for the invoke-command.