Exchange 2016 CU12 update failed with error Could not find EnterpriseServiceEndpointsConfig

Problem: Exchange Server 2016 CU12 upgrade failed

Error: Could not find a part of the path, ‘C:\Windows\Temp\ExchangeSetup\bin\EnterpriseServiceEndpointsConfig.xml’.


To fix this issue: following the following steps.
Open the registry editor and go the following location.

Under “v15” folder check if the following outlined keys are available and they have the following string “ConfiguredVersion, UnpackedVersion, and PostSetupVersion” with matching the same version values.
  • AdminTools
  • ClientAccessRole
  • FrontendTransportrole
  • HubTransportrole
  • MailboxRole
  • UnifiedMessagingRole
If any of the string from '“ConfiguredVersion, UnpackedVersion, and PostSetupVersion” ' is not available, please create the same and update with the same version.

After string update in all the Role keys the issue was resolved, and we were able to update the CU12.

Note: If you are running this issue on a different version, all the keys with the server "Roles" should be fixed.