Wednesday, September 18, 2013

Powershell - Test a file list of mailboxes for Outlook Latency

9/18/2013: Another quicky broad troubleshooting script. This one is aimed at quickly answering those, "Users are reporting slow Outlook Response. Is there an issue?", helpdesk escalations.

Run Test-MAPIConnectivity against a list of mailboxes and report access latency

Static-source follows (for folks in RSS readers, or disabling scripting):
(check the linked Gist/Github links below for _current_ versions).

<# test mapi latency on a list of mailboxes#>
# one line follows...
get-content .\list.txt |
    get-mailbox |
        Test-MAPIConnectivity  |
            select Server, Database,Mailbox, Result,@{label="Latency(ms)";expression={($_.Latency.Milliseconds)}} |
                ft -auto | out-default ;


Typical output:
Server     Database Mailbox      Result  Latency(ms)
------     -------- -------      ------  -----------
SRVR-MAIL1 Mdb01    TestU1, User Success          70

No comments:

Post a Comment