Last active
January 15, 2025 02:33
-
-
Save mark05e/0468c36967d95ba79c88115c1b82be8c to your computer and use it in GitHub Desktop.
Maintenance Note - https://gist.github.com/mark05e/0a04a54c1e8489c770bd91e4910d7df9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# STOP AND DISABLE ALL EXCHANGE SERVICES WITH A SINGLE LINE | |
# ref - http://ccmblogs.co.uk/?p=293 | |
get-service | ?{$_.DisplayName -ilike "Microsoft Exchange*"} | stop-service | |
get-service | ?{$_.DisplayName -ilike "Microsoft Exchange*"} | set-service -StartupType Disabled | |
get-service | ?{$_.DisplayName -ilike "Microsoft Exchange*"} | select status, starttype, name, displayname |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment