SMPTdiag Powershell Script

*** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK ***

This script will take input of the Sender Email address as well as the Receiver Email address. Once it checks for an Email address smtpdiag.exe /v (verbose logging) is executed and written to c:\userprofile\desktop\smtpdiag\smtpdiag.log

Tested on Windows Server 2k8 R2 and Exchange 2010

Usage:
1: You must download SMTPdiag from the Microsoft Website here (http://www.microsoft.com/en-us/download/details.aspx?id=11393).
2. Copy the smtpdiag.exe and this script to a folder on you computer. (I put is all in c:\smtpdiag)
3. Open Powershell and navigate to the folder in step 2.
4. Run the script by typing .\smtpdiag.ps1

 

Leave a Reply