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’
To Get all the MxExchange Services Startup Type to Automatic State
Get-Service | where{$_.Name –Like ‘MSExchange*’} | set-Service –StartupType ‘Automatic’
(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
To Start All the MsExchange Service
Get-Service | where{$_.Name –Like ‘MSExchange*’} | start-Service
To the Current Status of the Service
Get-Service | where{$_.Name –Like ‘MSExchange*’}
Happy Learning !!
Hi. Could you perhaps point me to a page that describes the default settings for startup type for Exchange 2013. Thanks.
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
Search the Get-ADcomputer -filter {Use any} | Restart-Computer
Maybe easy: stop-services MSExchange* ? 🙂
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 .
Hello Satheshwaran,
Thanks for sharing these commands, which really save lot of time while troubleshooting server down issues.
These are very useful.
Your Welcome 🙂
Very helpful, really time saver article…. Thanks
Thank you
HI,
How do you stop just one service
Get-Service MSExchangeTra* | Stop-service