Friday , April 28 2017

Managing Microsoft Exchange Services with Windows Powershell in Exchange 2010

We usually need to get the Microsoft Exchange services to disabled one by one in more scenarios like Performance, Setup etc.. .

But its much easier to manage Exchange services in powershell , Saves more time !!

To Get all the MsExchange Services Startup Type to Disabled State

Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Disabled’

clip_image002

To Get all the MxExchange Services Startup Type to  Automatic State

Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Automatic’

clip_image004

(Starting and Stopping all Service in one Shot differs , scenario to scenario – Please have this Tested in your Lab)

To Stop All the MsExchange Service

Get-Service | where{$_.Name –Like ‘MSExchange*’} | stop-Service –Force

Note ** Am using -Force as MsExchangeADTopology Service as dependancies

clip_image006

To Start All the MsExchange Service

Get-Service | where{$_.Name –Like ‘MSExchange*’} | start-Service

clip_image008

To the Current Status of the Service

Get-Service | where{$_.Name –Like ‘MSExchange*’}

image

Happy Learning !!

 

About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Exchange Server MVP , Publisher of CareExchange.in Supporting/Deploying/Designing Microsoft Exchange for some years. Extensive experience on Microsoft Technologies.

Check Also

Configuring NTP with Master Clock in Isolated Network

Typically in Active Directory Based Environment – Primary Domain Controller (PDC) will be the master ...

11 comments

  1. Hi. Could you perhaps point me to a page that describes the default settings for startup type for Exchange 2013. Thanks.

  2. Do you know what is the steps to reboot all exchange servers 2010
    two mailbox servers –storage on SANs
    2 hub servers and
    one edge server

  3. Maybe easy: stop-services MSExchange* ? 🙂

  4. Hello Satheshwaran,

    Thanks for sharing these commands, which really save lot of time while troubleshooting server down issues.

    These are very useful.

  5. Very helpful, really time saver article…. Thanks

  6. HI,

    How do you stop just one service

Leave a Reply

Your email address will not be published.