29.8 C
Dubai
Friday, April 19, 2024

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 !!

 

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

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

    • 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 .

  3. Hello Satheshwaran,

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

    These are very useful.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?