Test-OWAConnectivity on client access arry and send a message if a failure occurs RRS feed

  • Question

  • 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.


    Thursday, May 23, 2013 9:51 AM

All replies

  • Hi Alex,

    The Test-OwaConnectivity cmdlet can be used to test Outlook Web App connectivity for all Microsoft Exchange Server 2010 virtual directories on a specified Client Access server for all mailboxes on servers running Exchange that are in the same Active Directory site. I'm not sure if it can achieve the goal,I will test for you tomorrow in my lab.



    Wendy Liu
    TechNet Community Support

    Sunday, May 26, 2013 1:00 PM