Saturday , August 18 2018

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

VssWriterCallback interface 0x80070005 – Access is denied

While we run backup on Windows 2012 R2 Machines . We keep getting below events ...

12 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* ? 🙂

    • Satheshwaran Manoharan

      Even that will work my friend 🙂 but in real world most of the time you will have to stop and restart any 2 Ms Exchange services or add some other services .

  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

  7. Hi. I see that you don’t update your site too often. I know that writing posts is time
    consuming and boring. But did you know that there is a tool that allows you
    to create new posts using existing content (from article directories or other blogs
    from your niche)? And it does it very well.
    The new articles are high quality and pass the copyscape test.
    You should try miftolo’s tools

Leave a Reply

Your email address will not be published.