Skip to content

Instantly share code, notes, and snippets.

Make sure that Exchange services are not disabled during CU upgrade or update
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