Windows Autopilot, Step by Step — Part 9: Troubleshooting — Diagnostics, Logs, and the Failures Everyone Hits
WINDOWS AUTOPILOT, STEP BY STEP — PART 9 OF 9
Troubleshooting — Diagnostics, Logs, and the Failures Everyone Hits
This is post 9 of a nine-part series that configures and deploys Windows Autopilot end to end — and it is the last one. Part 1 set the foundation, Part 3 registered the devices, Part 4 wrote the profile, Part 5 walked the Enrollment Status Page, Part 6 weighed the new device preparation flow, Part 7 pre-provisioned the fleet, and Part 8 bridged the hybrid and existing-device estates. This part is the method for when provisioning fails in front of a user: collect the right evidence, read the right logs, and fix the failure classes that account for almost every broken Autopilot run. Track your progress with the Windows Autopilot Deployment Checklist — the companion checklist for the whole series, one section per part.
The method is one sentence: evidence first, guesses never. A stuck ESP screen tells you almost nothing on its own — the same frozen progress bar can mean an unregistered device, a timed-out app, a group that has not populated yet, or a licence that was never assigned. The fix for each is different, and guessing wrong costs a reset and another hour. So before touching anything, collect the evidence, then read it in the order this part lays out. The whole series was built to be debugged this way: every part you already did is one link in the chain, and the logs tell you exactly which link broke.
Evidence first — the four signals

Four sources, one question: where did it break? The diagnostics page is the fastest — it lives on the device, during OOBE, and needs no portal access. The event logs are the most precise — they name the failure in codes the FAQ recognises. The Intune Management Extension logs are where app installs go to explain themselves. And mdmdiagnosticstool is the collection tool that bundles it all into one file you can send to Microsoft support or open yourself. Start with whichever source is closest to the failure you are staring at, but never skip to the fix before at least one of them has spoken.
The diagnostics page — your first stop, on the device
The Windows Autopilot diagnostics page is the on-device view of the provisioning process, and it is the first thing to open when a deployment stalls. Two settings in the ESP profile switch it on — set Show app and profile configuration progress to Yes and Turn on log collection and diagnostics page for end users to Yes — and then, during OOBE, press Ctrl+Shift+D or select View Diagnostics. Three conditions apply, straight from Learn: it is Windows 11 only, it works in user-driven mode only, and the user must sign in with a work or school account — personal Microsoft accounts are not supported.
From the diagnostics page you can export the logs to an external drive — press Ctrl+Shift+D and select Export Logs — and the export includes a CSV file with the device’s hardware hash, which is exactly what you need if the problem turns out to be registration. When the ESP itself fails, the failure screen offers Collect logs, which copies the log files to a USB drive. And there is a safety net you should know about: by default, diagnostics are automatically collected when a Windows Autopilot deployment fails — one set per device per day, stored for 28 days, up to ten collections per device — but the upload only succeeds if the URL lgmsapeweu.blob.core.windows.net is not blocked on your network. If your firewall blocks it, the auto-capture silently never arrives.
While you are at the device, remember the other OOBE shortcut: Shift+F10 opens a Command Prompt window during OOBE (on a non-S-mode device), from which shutdown.exe /r /t 0 restarts immediately. That is how you get to a command line on a machine that has not finished provisioning — and how you run the collection tool below.
Collecting the bundle — mdmdiagnosticstool
When the on-device view is not enough, collect the full bundle with mdmdiagnosticstool. The command depends on the scenario, and Learn prints one per scenario:
| Scenario | Command |
|---|---|
| User-driven mode | mdmdiagnosticstool.exe -area Autopilot -cab <pathToOutputCabFile> |
| Self-deploying / pre-provisioning (White Glove) | mdmdiagnosticstool.exe -area Autopilot;TPM -cab <pathToOutputCabFile> |
| Runtime provisioning | mdmdiagnosticstool.exe -area DeviceProvisioning -cab <pathToOutputCabFile> |
| All areas at once | mdmdiagnosticstool.exe -area "DeviceEnrollment;DeviceProvisioning;Autopilot" -zip "c:\users\public\documents\MDMDiagReport.zip" |
The ;TPM area matters for pre-provisioning: it adds the TPM attestation data — the TpmHliInfo_Output.txt file and the attestation simulation output — which is exactly the evidence a failed technician flow needs. The CAB also carries AutopilotDDSZTDFile.json (the profile settings as the device received them), a registry dump, and the .evtx event log files from the next section. Once you have the CAB, you can read it yourself with the Get-AutopilotDiagnostics script: Install-Script -Name Get-AutopilotDiagnostics -Force, then Get-AutopilotDiagnostics -CABFile <pathToOutputCabFile>.
You do not have to be at the device to collect diagnostics. From the Intune admin center, go to Devices > All devices, select the device, and choose Collect diagnostics — the status shows at Monitor > Device diagnostics, and you download the result from the … menu. The bulk action covers up to 25 devices at once, and the automatic capture on Autopilot failure can be toggled at Tenant administration > Device diagnostics.
The log map — where every event lives
Autopilot and enrolment events live in several places, and knowing which one to open first is half the job:
| Location | What lives there |
|---|---|
| Event Viewer → Application and Services Logs > Microsoft > Windows > ModernDeployment-Diagnostics-Provider > Autopilot | The Autopilot event log — profile download, registration and attestation events, with the event IDs below |
| Event Viewer → Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostics-Provider (Admin channel; enable Debug via View → Show Analytic and Debug Logs) | The MDM enrolment log — enrolment and policy events |
| Event Viewer → Applications and Services Logs > Microsoft > Intune > ODJConnectorService | The Intune Connector for Active Directory log — the hybrid path from Part 8 |
HKLM\SOFTWARE\Microsoft\Provisioning\Diagnostics\Autopilot |
The profile settings as the device received them (AadTenantId, CloudAssignedTenantDomain, IsAutopilotDisabled, TenantMatched, CloudAssignedOobeConfig) |
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\{EnrollmentGUID}\FirstSync |
The ESP settings for that enrolment |
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Autopilot\EnrollmentStatusTracking |
ESP tracking state — Device and ESPTrackingInfo subkeys, with InstallationState values 1 NotInstalled, 2 InProgress, 3 Completed, 4 Error (4 means the ESP stops installing apps) |
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs |
Intune Management Extension logs — IntuneManagementExtension.log (main log), AppWorkload.log (Win32 app deployment — the one for app-install troubleshooting), AgentExecutor.log (PowerShell script executions), ClientHealth.log (extension health) |
One spelling note, because Learn itself prints it two ways: the Event Viewer node reads DeviceManagement-Enterprise-Diagnostic-Provider (singular), while the channel and file names use the plural DeviceManagement-Enterprise-Diagnostics-Provider. The plural form is the channel name to search for.
The Autopilot event log speaks in IDs, and the FAQ documents the ones that matter. Event 807 is ZtdDeviceIsNotRegistered — the device is not in the Autopilot service at all. Events 809 and 815 are ZtdDeviceHasNoAssignedProfile — a profile does not exist, or none is assigned. Events 171 and 172 are TPM attestation and profile-availability errors — the pre-provisioning failures from Part 7. Event 100, “Autopilot policy [name] not found”, is a warning, not an error: it appears while the device is still waiting for its profile, and it clears on its own.
The failures everyone hits

Learn does not publish a named failure-class taxonomy — its troubleshooting FAQ is organised into six sections (device import and enrolment, OOBE issues, Entra join issues, policy conflicts, application installs, and the Intune Connector for AD) — but the same failures come up in every one of them. These are the six, each with its cause, its evidence, and its fix:
| Failure | Cause | Evidence | Fix |
|---|---|---|---|
| Device not registered / wrong profile | The device was never imported, or no profile is assigned to its group | Event 807, 809 or 815; Profile Status stuck at Unassigned in Devices > Windows > Windows enrollment > Devices | Register the device (Part 3), assign the profile to the right dynamic group (Part 4), and wait for the status to move Unassigned → Assigning → Assigned |
| ESP timeout on a tracked app | The timeout value in the ESP profile is too short for the required apps — Learn’s example is five minutes for fifteen or more apps | UnifiedEnrollment_ProvisioningProgressPage_DeviceConfigurationTimeOut in the provisioning log; the app named in AppWorkload.log |
Shorten the required list (Part 5’s discipline — every tracked Win32 app is a potential stall), raise the timeout, and deploy the app as Win32 rather than as a Microsoft 365 Apps type |
| Dynamic group lag | The group rule is right, but the group has not populated yet — or the rule is wrong | The device is absent from the group in Entra ID; the rule does not match the device’s attributes | Wait for the membership to evaluate, then check the rule syntax from Part 3 ([ZTDid], [OrderID], [PurchaseOrderId] — case-sensitive) |
| Licensing or branding gap | The enrolling user has no Intune licence, or too many devices are already enrolled for that user | Error 0x80180018 (MENROLL_E_USERLICENSE); enrolment fails before the ESP ever appears |
Assign the Intune licence before enrolment (Part 1’s foundation), and check the user’s enrolled-device count |
| Pre-provisioning attestation failure | The TPM cannot attest, or the profile does not allow pre-provisioning | Events 171/172; error 0x80180005 when Allow pre-provisioned deployment is set to No | Confirm physical TPM 2.0, set the profile flag to Yes (Part 7), and re-run the technician flow — never reseal a device that has not finished |
| Hybrid domain-join delay | The domain the connector serves does not match where the device configurations are targeted, or the hybrid join itself times out | Error 0x80070774 (domain mismatch); 0x80004005 on hybrid timeouts (fixed in KB5065789 and later) | Check the connector’s domain and OU targeting (Part 8), and confirm the device is on a build carrying the fix |
One more code belongs in every admin’s pocket: 0x80180014 appears when re-enrolling a device that was previously enrolled — either the old Intune device record must be deleted (select the device under Devices > Windows > Enrollment > Devices and choose Unblock device) or Windows MDM enrolment is disabled in the tenant’s enrolment restrictions. And a warning about sources: the codes 0x80070002 and 0x81036502 circulate widely in community threads as Autopilot codes, but no Learn documentation page documents them for Autopilot — this series does not print them as Microsoft’s.
Tenant-side checks — device problem or tenant problem?
Before resetting a device, check whether the problem is the device at all. The Intune admin center has the tenant-side views: Devices > Monitor > Windows Autopilot deployment status shows per-deployment status — data is available for 30 days after deployment, and only new Intune enrolment events trigger records, so a reset that keeps enrolment, or the user portion of a pre-provisioning flow, will not appear there. Devices > Monitor > Enrollment failures catches the enrolment failures that never reach the ESP. For device preparation estates, Devices > Monitor > Windows Autopilot device preparation deployments shows per-device status, phase and enrolment date, with drill-in detail panes for the device, its apps and its scripts.
The framing Learn itself offers is worth keeping: six troubleshooting activities — review the configuration, check network connectivity, watch the OOBE behaviour, check the Entra join, check the MDM enrolment, review the automatically collected logs — across a six-stage flow: network, profile download, user authentication, Entra join, automatic MDM enrolment, settings applied through the ESP. Walk the flow in order, and the first stage that fails names the fix.
The full build, end to end
Nine parts, one deployment runbook. A new device arrives, and the tenant is ready before the box opens: the licence is assigned and the tenant is branded (Part 1, Part 2), the device is registered and grouped (Part 3), the profile tells it what to become (Part 4), the ESP watches it get there (Part 5), and when something stalls, the evidence names the broken link (this part). The technician flow (Part 7) and the hybrid bridge (Part 8) are the same chain with extra links — and the same method debugs them. If you followed along, the Windows Autopilot Deployment Checklist is now fully ticked: nine sections, one per part, each linking back to the post that teaches it.
That is the series. If you came here from the career-level view in Desktop Engineer Part 7: Intune + Autopilot, you now have the portal-level build it pointed at — and if you want the same treatment for the enrolment failures that surface before Autopilot ever starts, Day 1 of the Intune troubleshooting series is where that story lives. The next series takes this slot tomorrow; this one is complete, and the checklist stays live as the runbook.
Sources: Microsoft Learn — Troubleshooting Windows Autopilot overview; Troubleshoot the Enrollment Status Page; Collect MDM logs; Intune Management Extension; Collect diagnostics; Windows Autopilot profiles.*



















