Exchange 2016: CU21 upgrade failed with error “Cannot start service MSExchangeServiceHost on computer”
Contents [hide]
Description
Exchange 2016 CU upgrades don’t always go according to plan.
In this scenario, one of my servers just wouldn’t upgrade but the rest did without error.
The upgrade runs like normal from the CLI but fails with the below error:

Cannot start service MSExchangeServicehost……”
Hoặc Setup GUI
Cause
When I went to check the Exchange Services, some of them were automatic but the rest were disabled.
I ran the command in PowerShell: Get-Service *Exchange* | Set-Service -StartupType Automatic but I was not quick enough and the setup failed again.
In short, when we update the CU, we need the Exchange services to be in Automatic state, but these services have not been Automatic but the state is disabled, so the process will fail.
Solution
This is a very classic and bloody trick, you open Powershell and run the code below

Roughly this code is as follows, creating a loop to keep Ms Exchange services in automatic state without disabling
We proceed to run the upgrade again using the CLI or the interface. When finished, press ctrl + C to turn off the above Loop
re-run Setup.exe
D:\setup.exe /m:upgrade /IacceptExchangeServerLicenseTerms
So the update was successful.
Summary
Phuong Nguyen writes about the experience of sharing systems to update patches to prevent attacks from HAFNIUM CVE-2021-26855 vulnerabilities. If you find the article interesting, don’t forget to like and share
Good luck.
Phương Nguyễn