Services starting/stoping and startup type change with PowerShell

To Get all the MxExchange Services Startup Type to  Automatic State

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

Start all msExchange services

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

 

Stop all msExchange services

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s