July 2017
Intermediate to advanced
648 pages
31h 9m
English
In the previous examples, we used the generic URL of mail.testlabs.se to check one health web page. This URL might be load balanced, which means we might not know which Exchange server actually returned the page. A way around this is to use the server name in the URL instead, like this:
Invoke-WebRequest -Uri "https://tlex1.testlabs.se/owa/healthcheck.htm"
The problem with this approach is that it is very likely that your digital certificate does not have the server name in it, which is considered a best practice. This means that Invoke-WebRequest will fail to validate the certificate and will throw this error: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel". ...
Read now
Unlock full access