

- POWERSHELL WEBSITE MONITOR SCRIPT HOW TO
- POWERSHELL WEBSITE MONITOR SCRIPT UPDATE
- POWERSHELL WEBSITE MONITOR SCRIPT DOWNLOAD

The script doesn’t perform any diagnostics when it detects an error, it only reports them to you. Q: What should I do when the script report an error/fail on my servers? Q: Why aren’t Edge Transport servers checked?īetween firewalls and permissions the Edge Transport checks are difficult to account for so they are currently skipped by the script. Make sure you’ve configured the email settings section of the script to point to a Hub Transport that either accepts anonymous users (typically an internet-facing Hub Transport), or if you’re using a separate management server or admin workstation point the SMTP server to a Hub Transport that has a receive connector set up that the server you’re running the script on is allowed to relay through. Q: Why do I get an error when the script sends the email report? For example, in a mixed Exchange 2010/2013 environment you should run the script from an Exchange 2013 server. Yes, it should work as long as you run it from the highest version of Exchange. Q: I’m running multiple versions of Exchange, will the script still work? If you are running the script on a server that has Exchange 2010 or 2013 (or later) server roles or management tools installed then it should work. Q: Which version of PowerShell is required? Arguments: -command “C:\Scripts\ExchangeServerHealth\Test-ExchangeServerHealth.ps1 -Log -SendEmail”.My scheduled task settings for this script are: Use the ignorelist.txt file to specify the names of any servers, DAGs, or databases that you want to ignore for the tests. $umrole = "Unified Messaging-Serverrolle" # This should match the word for "Success", or the result of a successful Test-MAPIConnectivity testįor example, a German system would use the following values: # The server roles must match the role names you see when you run Test-ServiceHealth. $umrole = "Unified Messaging Server Role" # The server roles must match the role names you see when you run Test-ServiceHealth. When running the script on non-English servers you can modify the following variables in the script to match your language so that the script does not give errors or incorrect results. My advice is to use a distribution group, so that any time you need to modify the list of recipients you can simply change the distribution group membership instead of needing to modify the script code.
POWERSHELL WEBSITE MONITOR SCRIPT HOW TO
SmtpServer = ""Ī lot of people ask how to add multiple recipients to the SMTP settings. $smtpsettings = "Exchange Server Health Report - $now"
POWERSHELL WEBSITE MONITOR SCRIPT UPDATE
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.įor the email functionality to work please update these variables in the script to suit your environment.

\Test-ExchangeServerHealth.ps1Ĭhecks all servers in the organization and outputs the results to the shell window.\Test-ExchangeServerHealth.ps1 -Server HO-EX2010-MB1Ĭhecks the server HO-EX2010-MB1 and outputs the results to the shell window.\Test-ExchangeServerHealth.ps1 -ReportMode -SendEmailĬhecks all servers in the organization, outputs the results to the shell window, a HTML report, and emails the HTML report to the address configured in the script.

POWERSHELL WEBSITE MONITOR SCRIPT DOWNLOAD
This script is available to download from the TechNet Script Gallery or Github. This is a useful script to run as a daily health check first thing in the morning to identify any problems that may have occurred overnight, and give you a chance to fix them before your end users notice. The report includes a summary of issues that were found, as well as a color-coded table with the detailed test results to help you quickly spot problems. This PowerShell script will perform a health check of your Exchange Server environment, including servers and database availability groups, and output a HTML report that you can send to your inbox.
