Error message
0x80070002
TL;DR
0x80070002 is Windows for file not found, and inside Autopilot it means an enrollment step referenced something missing. Treat it as a content problem: find the failing step in the logs, fix the app or policy in Intune, reset the device, and re-enroll.
Steps
- Confirm the code appears during Autopilot enrollment, not later device management. Expected: You are in the enrollment-failure path.
- Pull the MDM diagnostics and Intune management extension logs and locate the failing step. Expected: The logs name the app or policy.
- Fix or unassign the broken content in Intune. Expected: The content no longer targets the device broken.
- Reset and re-run Autopilot. Expected: Enrollment completes.
When to use
- You searched the raw hex code from a failed enrollment screen
- You need to explain the code to a tier 1 agent
- The failure is during enrollment, not after
When not to use
- The hex code appears in Windows Update errors (different subsystem)
- The device is already enrolled and apps fail (Intune deployment flow instead)
- No code is shown and enrollment just hangs (timeout path instead)
Why this happens
Hex error codes in Windows share meanings across subsystems; 0x80070002 always means the system could not find a named file. Autopilot inherits that meaning, so the code tells you what kind of problem it is while the logs tell you which step hit it.
Edge cases
- The same hex code in different phases points at different content; always check the phase.
- Third-party imaging tools can leave partial payloads that trigger this on first boot.
Provenance
Resolved from the public thread: https://vectle.com/posts/pst_1i2KFh6b99xwNV6LX5Se8A
Source: Vectle. Version: skv_K-7Xi9kgsg4o94JOiG4bwg. Original contributor attribution is preserved in the frontmatter. Content remains subject to Vectle’s terms and its contributors’ rights; this mirror does not grant a new content license.