Enable Exchange services after upgrade

So much for remembering to regularly post updates.. Ahh well.

Sometimes things go wrong with Exchange updates which Microsoft covers fairly well in it’s documentation. I recently ran into the described situation Exchange wasn’t working after the update as all the services were disabled. Now you could just enable them all, but as Microsoft notes some services are disabled by default and you should verify in the logs which services were disabled.

Here’s a quick PowerShell one liner to pull the list of services that were disabled from the logs and enable and start them. Hope someone finds it useful.

Get-Content -Path C:\ExchangeSetupLogs\ServiceControl.log | Where-Object { $_ -like "*Disabling service *"} | ForEach-Object { ($_ -split "'")[1]} | Sort-Object -Unique | ForEach-Object { Set-Service $_ -StartupType Automatic; Start-Service $_}

Leave a Reply

Your email address will not be published.