Friday, July 18, 2014

Exchange 2010 Health Check Report

This script is a fast and efficient way of checking if you have any severe issues with your Exchange 2010 setup.
All credits to go to the scripts original author at ExchangeServerPro

http://exchangeserverpro.com/powershell-script-health-check-report-exchange-2010

All that is need is to download the file from the link above.


The command line in PowerShell to run the script is as follows

Single Server
.\test-ExchangeServerHealth.ps1 -reportmode $true -sendemail $true -server <Exchange Server Name>

Entire Organization
.\test-ExchangeServerHealth.ps1 -reportmode $true -sendemail $true -server *

Servers Starting with perhaps a site with Server Prefixed with "SIN"
.\test-ExchangeServerHealth.ps1 -reportmode $true -sendemail $true -server sin*

The PS script can be downloaded from the link below
http://inside.exchangeserverpro.com/members/test-exchangeserverhealth/

The Test-ExchangeServerHealth.ps1 script is run from the Exchange Management Shell. You can use a few builtin parameters to control what it does.
.PARAMETER Server
Perform a health check of a single server

.PARAMETER ReportMode
Set to $true to generate a HTML report. A default file name
is used if none is specified.

.PARAMETER ReportFile
Allows you to specify a different HTML report file name than
the default. Implies -ReportMode

.PARAMETER SendEmail
Sends the HTML report via email using the SMTP configuration
within the script. Implies -ReportMode

.PARAMETER AlertsOnly
Only sends the email report if at least one error or warning
was detected.

.PARAMETER Log
Writes a log file to help with troubleshooting.
If you use the report mode you’ll get a HTML file containing the health check results, and/or an email to your designated address if you also use the send email option.
For the email functionality to work please update these variables in the script to suit your environment.

#...................................
# Modify these Email Settings
#...................................

$smtpsettings = @{
 To =  "yourname@yourdomain.com"
 From = "exchangeserverhealthcheck@yourdomain.com"
 Subject = "Exchange Server Health Report - $now"
 SmtpServer = "smtp.yourdomain.com"
 }

No comments:

Post a Comment