Get all Exchange 2010 Services over Powershell

Hi folks,

It seems to be my first blog here. As IT guy writing for IT people, I won’t boring you with useless information :).  My first script helps you to get status of all exchange 2010 services from all servers in you exchange org. So you can easy and quickly check if all services are running as expected:

$a=Get-ExchangeServer | where {$_.DistinguishedName -like “*FYDI*”}
foreach ($test in $a){write-host $ $test.serverrole; Get-Service msexc* -ComputerName $test | format-table -autosize}

The first line get all Exchange 2010 Server from the first administrative group with generic name “CN=Exchange Administrative Group (FYDIBOHF23SPDLT)”.

Second line enumerates exchange services on each exchange server (they always starts with msexchange*) and writes output in the console.

Enjoy …

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Get all Exchange 2010 Services over Powershell

  1. amergold says:

    Excellent goods from you, man. I have bear
    in mind your stuff previous to and you’re simply extremely fantastic.
    I actually like what you’ve acquired right here, certainly like what you are saying and
    the way in which wherein you assert it. You’re making it enjoyable and you continue to
    care for to stay it wise. I can not wait to read much more from you.
    That is really a tremendous website.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s