Managing Microsoft Exchange Services with Windows Powershell in Exchange 2010
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*’}
http://careexchange.in/managing-microsoft-exchange-services-with-windows-powershell/