Stop and/or disable all Exchange services

There have been various occasions where I’ve needed to stop and/or disable all services relating to Microsoft Exchange

This can be achieved by running PowerShell as an Administrator and executing one of the following commands

Stopping all Microsoft Exchange Services

get-service | ?{$_.Name -ilike "MSexch*"} | stop-service

You may find that some services fail to stop because their dependant services are still running, in this case re-execute the above command

Disabling all Microsoft Exchange Services

get-service | ?{$_.Name -ilike "MSexch*"} | set-service -StartupType Disabled

Leave a Reply

Your email address will not be published.