This is the updated version of the below script:
Enhancements have been done so that Email Alert is generated when state is critical.
New in this script is:
$ALert = “Yes”
$htmlreporting = “Yes”
$smtphost = “smtp.labtest.com”
$from = “Exchange2010Status@labtest.com”
$from1 = “SysMonitoring@labtest.com”
$to = “Vikass@labtest.com”
$hrs = (get-date).Addhours(-24)
if $alert is yes than script will send critical alert for index, DB & backup health issues.
If $htmlreporting is yes than HTML report will also be sent on email as was with previous script.
Schedule the script from task scheduler.
Note: Exchange 2010 management Shell is required