Autopilot ESP 0x800705b4: Intune Management Extension fails with Error 1719 / CA Server Error 0x641 on new HP laptops

A batch of brand new HP EliteBook 8 Flip G1i laptops kept failing Windows Autopilot (Entra join, user-driven) at the very first stage of the Enrollment Status Page. Everything looked right in Intune, the Autopilot profile was correct, and the error on screen told us almost nothing. Here is how we tracked it down and what fixed it.

The symptom

The ESP sat on Device preparation for 30 minutes and then failed:

Setup could not be completed. Installation exceeded the time limit set by your organisation.

Device preparation - Error
  Securing your hardware (Completed)
  Joining your organization's network (Completed)
  Registering your device for mobile management (Completed)
  Preparing your device for mobile management (0x800705b4)

0x800705b4 is just a timeout. The usual suspects (device enrolment limit, stale Intune/Entra records, ESP timeout too short, TPM) were all fine, and resetting the device made no difference.

Step 1 – What was the ESP actually waiting for?

Grab the logs from the failed device: either Collect logs on the ESP error screen (if enabled in the ESP profile), Ctrl+Shift+D for the diagnostics page, or the automatic Device diagnostics upload in Intune after an Autopilot failure. Then open the Autopilot event log:

Applications and Services Logs > Microsoft > Windows >
  ModernDeployment-Diagnostics-Provider > Autopilot

Two events gave it away:

04:08:59  Event 287  Provider = Sidecar          (ESP starts waiting)
04:39:10  Event 289  Provider = Sidecar  Int1 = 30 (gave up after 30 min)

Sidecar is the Intune Management Extension (IME). The ESP was waiting for the IME, and it never arrived. The IME log (C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\IntuneManagementExtension.log) only covered about 8 seconds before “Agent stopped”, so it had started and been torn down almost immediately.

Step 2 – Why did the IME install fail?

The DeviceManagement-Enterprise-Diagnostics-Provider/Admin log showed the IME MSI (IntuneWindowsAgent.msi, product code {6d5a67d6-ecdc-4073-86db-5ef1c67b4213}) failing with event 1924, and every retry after that failing with 0x80070003 because the staged MSI had already been cleaned up. The Application log had the real error:

Product: Microsoft Intune Management Extension -- Error 1719.
The Windows Installer Service could not be accessed.
... Installation success or error status: 1603

Our line-of-business agent MSI failed the same way at the same moment, so this was not specific to the IME package.

Step 3 – The verbose MSI log

The Intune diagnostics bundle includes the verbose MSI log for the IME install:

C:\Windows\System32\config\systemprofile\AppData\Local\mdm\{6d5a67d6-ecdc-4073-86db-5ef1c67b4213}.log

That showed exactly where it broke. Windows Installer itself was running fine, but every time it spun up a Custom Action server to run a DLL custom action, the CA server died instantly:

Invoking remote custom action. DLL: C:\Windows\Installer\MSIE624.tmp, Entrypoint: CreateRegistryKeyAndValues
Created Custom Action Server with PID 8496 (0x2130).
Running as a service.
CA Server Process has terminated.
CA Server Error: 0x641
CA Server Error Message: ServerMain (CA): Connection to Service failed.
CustomAction CreateRegistryKeyAndValues returned actual error code 1601
Error 1719. The Windows Installer Service could not be accessed.

0x641 = 1601 = ERROR_INSTALL_SERVICE_FAILURE. The first two custom actions (SyncAppConfigTimestamps, RegisterAUMID) failed the same way but are marked “continue on error”; CreateRegistryKeyAndValues is not, so the install rolled back, the IME never installed and the ESP timed out waiting for Sidecar.

What it was not

  • Competing installs – a retry with only the IME MSI failed identically.
  • Defender / ASR – no ASR rules configured, no detections, no exploit-protection mitigations on msiexec.
  • AppLocker – the MSI was evaluated and allowed, no block events.
  • Autopilot profile / hybrid join – the device had the correct Entra join profile.
  • Third-party security software – nothing installed beyond the HP factory utilities and Office.

Everything pointed to Windows Installer on the device itself: the custom action server could not connect back to the msiserver service.

The fix

Wipe the laptop and reinstall Windows from a clean Microsoft Windows 11 ISO, then run Autopilot again. After the clean install the IME MSI installed first time, Sidecar completed and the ESP went straight through.

We did not get to the bottom of exactly what in the HP factory image breaks the Windows Installer custom action server, so treat this as “suspect the OEM image” rather than a confirmed HP bug. If you see this pattern on new HP hardware, try a clean image before spending hours on Intune.

Quick checks if you hit this

  • Autopilot event log: look for event 289 with Provider = Sidecar – the ESP timed out waiting for the IME.
  • DeviceManagement Admin log: event 1924 for {6d5a67d6-ecdc-4073-86db-5ef1c67b4213}, then repeated 0x80070003.
  • Verbose MSI log: CA Server Error: 0x641 – Connection to Service failed.
  • From Shift+F10 during OOBE you can also sanity-check the service with sc qc msiserver (should be DEMAND_START, C:\Windows\system32\msiexec.exe /V) and try msiexec /unregister then msiexec /regserver – but on these devices only a clean reinstall fixed it.
(No Ratings Yet)