‘Cannot start service MSExchangeServiceHost on computer’ During Exchange CU Update

While attempting to update to the latest CU for Exchange 2016 (on a Windows 2016 server), the process failed several times with an error (‘Cannot start service MSExchangeServiceHost on computer’) and I could not understand why.  I still don’t understand why, but I did find a workaround that I felt important to share.

During the CU upgrade, all of the services are set to ‘disabled’ but for one reason or another the services do not get reset to their original start up value.  Attempts to manually reset to Automatic were much too cumbersome to monitor and update considering there are over 30 services for Exchange 2016 alone.

If you are getting the ‘Cannot start service MSExchangeServiceHost on computer’ error during the CU upgrade, use the following looping script to monitor and reset the Exchange services from ‘Disabled’ to ‘Automatic’.

 

While (1 -le 2) { Sleep 1 ; Get-Service | Where { $_.DisplayName -Like ‘Microsoft Exchange*’ } | Set-Service –StartupType ‘Automatic’ }

 

When the CU completes, press CTRL+C to end the looping script and then restart the server to complete the upgrade.

 

Reference(s):

Advertisements

3 thoughts on “‘Cannot start service MSExchangeServiceHost on computer’ During Exchange CU Update

  1. Pingback: List of Exchange Server 2013 Services Installed | ODDYTEE

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s