Exchange Server 2013 Email Flow Latency Script for multiple Servers


This script help for finding email flow latency between the servers. This will be most useful when you have the exchange servers across the site and perform the mail flow routing.

It works on getting the local server name as source server name and queries each target mailbox servers which is denoted in the array.

$filePath = “C:\temp\Raji\output.txt”
$array = @(“MBX1.mail.com”,”MBX2.mail.com “,”MBX3.mail.com “,”MBX4.ad.aricent.co.mail.com”)
$SourceServer = $env:COMPUTERNAME
ForEach ($TargetServer in $array)
{
Write-host Testing Mailflow from $SourceServer to $TargetServer -foregroundcolor cyan
Add-Content $filePath “Testing Mailflow from $SourceServer to $TargetServer”
$Output = Test-Mailflow -SourceMailboxServer $SourceServer -TargetMailboxServer $TargetServer | FT -Autosize
Write-Output $Output
$Output | Out-File -filePath $filePath -append -encoding ASCII
}

Just change the File path in the Email Flow Script and you can get the output as out.txt file

Advertisements

About Raji Subramanian

Nothing great to say about me...Just want to share my knowledge for others that will be useful at any moment of time when they stuck in critical issue....
This entry was posted in Exchange Server 2013 Email Flow Latency and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s