15. May 2010 00:21
A few weeks back I was onsite with a customer that was experiencing some issues with their Exchange servers after applying the latest rollup the night before. After we resolved the problem, the customer asked for a solution to validate all core Exchange services were online after patching their Exchange servers. Since the customer has hundreds of Exchange servers, we knew the only good solution would be to automate the task so I decided to build a PowerShell script.
What I have done is broken the PowerShell scripts into three separate PS1 files for each common Exchange role (CAS, HUB, and Mailbox). I will upload each of these individually. As of right now, I’m not planning on writing a PS1 script for EDGE and UM though I may in the future.
The first PS1 script is a limited health assessment for the Client Access Server (CAS) role. The script runs through 4 functional areas: core Exchange service status, OWA health, ExBPA (errors are exported to the report and warnings are displayed on screen), and Exchange web services. Once the data is collected, the results are exported to a simple HTML report. The CAS Mini Health Assessment script can be found here.
All of the commands work with Exchange 2007 and most of the commands work with Exchange 2010. I will be adding additional blogs for the HUB and Mailbox servers.
Here’s a screenshot of the report: