Hello Intertubes! (Interwebs? Inter-connected-hyper-mega-transfer-thingy…? Yeah, let’s go with that.)

So today I’m bringing my final part of the Health check for now. I still have to add functionality for Exchange 2010 and 2007, but that will be in the coming months, I’ll post a new post, but I’ll update the download link at the end of this with the updated scripts as they are added.

So today we will be covering the ‘controller’ script as I like to call it. It is a total control freak, like, it will take all your money and give you an allowance… But man it will save you cash by the butt load…

Seriously though, it’s super basic. It just has some logic for finding all of your Exchange servers, which version they are, and running the appropriate scripts against them.

Import-Module .\Supplimentals\HTMLReport.ps1
Import-Module .\Supplimentals\HTMLTable.ps1
$date = Get-Date -Format yyyy.MM.dd.hh.mm.ss
$exchangeServers = Get-ExchangeServer
foreach($exchangeServer in $exchangeServers)
    {
    if($exchangeServer.AdminDisplayVersion -like "*15*")
        {
        Import-Module .\E15\E15HealthCheckModule.psm1
        if($exchangeServer.ServerRole -like "*Mailbox*")
            {
            Test-E15MailboxServer -date $date
            }
        elseif($exchangeServer.ServerRole -like "*ClientAccess*")
            {
            Test-E15ClientAccessServer -date $date
            }
        Get-E15OrganizationInfo -date $date
        }
    }

So one think you’ll notice, it imports a bunch of modules, then just runs the cmdlets. It’s pretty simple.

It will have more added to allow for E14 and E12 when I get around to those parts.

The download for the whole thing is here: ExchangeHealthCheck

Just unzip this somewhere on an Exchange server in your environment and then run the top level script and let it do it’s magic!

Anyway, that wraps up this set. I hope you all enjoyed it! I have been thinking about doing an intro to PowerShell next, I have a lot of friends who don’t really understand the basics so I figured I’d post some good info on it… Try to do it a bit differently than every single other post about that very topic on the Internet. I’d love to hear your opinions in the comments below!

Have a Happy new years everyone!

2 thoughts on “Exchange Health check Final”
  1. Thank you for sharing excellent informations. Your web-site is very cool. I’m impressed by the details that you’ve on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found simply the info I already searched everywhere and simply couldn’t come across. What an ideal web site.

Leave a Reply

Your email address will not be published. Required fields are marked *