Created
February 19, 2020 12:07
Make sure that Exchange services are not disabled during CU upgrade or update
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
do { | |
Get-Service | Where-Object {$_.DisplayName -like "Microsoft Excha*"} | Where-Object {$_.StartType -like "Disabled*"} | Set-Service -StartupType Manual | |
Sleep 10 | |
} | |
while ($true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment