Introduction
The error 0x87D1041C related to Company Portal application installation during the Autopilot enrollment process has recently caused issues, particularly after the May Windows update. This article examines the causes, identifies changes in system context operation, and explores how a suspended flight modification enabled installation recovery.
Good to know
Autopilot enrollment is designed to pre-configure devices before deployment to users, which includes installation of necessary applications.
Origin of Error 0x87D1041C
The error 0x87D1041C indicates that Intune was unable to detect the application after its installation, even though the installation appeared to complete successfully. This issue manifested after the May Windows update, while the Company Portal installation configuration had not changed.

Impact of Changes in Windows Apps
Technical Context of Store Installation
Installing an application from the Microsoft Store involves several steps:
- Retrieving the package from the Store.
- Staging content on the device in C:\Program Files\WindowsApps.
- Registering the package in the system or user context.
This process is orchestrated by several essential Windows components:
- InstallService.dll: Responsible for the installation workflow from the Store.
- AppXDeploymentClient.dll: Enables operations on AppX and MSIX packages.
- AppXDeploymentServer.dll: Manages deployment and package state.
Why Does the Error Persist?
Although the package is correctly stored in WindowsApps, the final registration process was not being completed. This led Intune to report the application as missing, resulting in error 0x87D1041C.

Results Obtained
After disabling the function in InstallService.dll, Company Portal installation in system context successfully resumed during Autopilot pre-provisioning, as expected.

Conclusion
The FixInstallUnderSystemContext feature aimed to improve installation flows for users, but its behavior is incompatible with Autopilot pre-provisioning. This situation highlights the importance of thorough testing before deploying modifications to critical components.
Important
Administrators should monitor Windows updates and their impacts on Intune and Autopilot flows, and perform laboratory testing before any deployment.



