Hello there,
we use Exchange 2010 with a cas array and a TMG and everything worked fine for over a year.
But yesterday, a strange failure occured. The OWA website wasn´t reachable from external. the internal access worked fine. The solution was, to restart the TMG.
All my Test-Scripts run through the internal tests, so i didn´t realised the problem that fast.
So my question is:
How can i create a script, that checks both cas array servers with Test-OWAConnectivity -testtype:internal and -testtype:external, and send me a mail, if the result wasn´t successful.
I tried to bring that up with PS, but i am not that good, so hopefully someone can help me.
Here is, what i first start with:
$body=Test-OwaConnectivity -testtype:external | select clientaccessserver, result
send-mailmessage -to "monitoring@domain.com" -subject "Test OWA external" -from "user@domain.com" -body $body -smtpserver "smtp server"
So first of all, i struggle with combining two or more checks into the script and create one mail.
So i can only create one mail per test. Also, i can´t find any PS command for the usage of the cas array.
For example: Test-OwaConnectivity -testtype:external -clientaccessserver "cas array name".
And on top of that, i would only want to receive a mail, if the check fails.
I would highly appreciate any help in that case.
Thanks in advance.
Alex