Part 5: Run Your First Windows Autopilot Deployment and Fix ESP Device Setup Timeouts
Run the first user-driven Autopilot deployment, read each ESP phase, collect logs with mdmdiagnosticstool and fix device setup time-outs.

Advertising disclosure: this article includes partner links. KBY may earn a commission if you sign up or buy through one, at no extra cost to you. How we make money.
Continue the series
You are reading Part 5 of 6
Windows Autopilot with Intune, Step by Step
Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
#What this part does
This part runs the first real Autopilot deployment. You take the pilot laptop to the out-of-box experience (OOBE), let a pilot user sign in, and watch the Enrollment Status Page (ESP) through to the desktop. If the ESP stops with a time-out, you collect the logs, find the step that failed and fix it.
By the end, the pilot laptop is Microsoft Entra joined, enrolled in Intune under a PILOT- name, and has its blocking apps installed. You will also know how long a deployment really takes in your tenant, which decides whether the 90-minute time-out from Part 4 stays.
#What is already in place
Everything the laptop needs is waiting for it in the service. It is registered with the group tag AP-Pilot, sits in SG-Autopilot-Devices-Pilot, and shows the profile Autopilot Pilot User-driven Entra join as Assigned. The custom ESP profile Autopilot Pilot ESP blocks the desktop for two or three Win32 apps and the monthly quality update, with a 90-minute time-out. The person who signs in must be a member of SG-Autopilot-Pilot.
Before you switch the laptop on, open Devices > Windows > Enrollment > Windows Autopilot > Devices and confirm that Profile status still reads Assigned. A laptop that starts before its profile is assigned simply goes through ordinary Windows setup.
#Get the laptop back to the out-of-box experience
Autopilot only takes over at OOBE, so the laptop has to start there. Which route you take depends on how you captured its hardware hash in Part 2.
- You uploaded with
-Onlineat OOBE and shut the laptop down. It has never finished setup, so there is nothing to reset. Switch it on. Windows downloads the Autopilot profile when an internet-connected device starts, and again after each restart. - You ran the script from a finished Windows desktop. That laptop has already completed OOBE, and Autopilot does not run again on a provisioned device. The Autopilot event log records this as event 163, which tells you to clean or reset the device.
To reset it on Windows 11, go to Settings > System > Recovery, select Reset PC, then choose Remove everything. On Windows 10 the same option is under Update & Security > Recovery > Reset this PC. Microsoft describes that option as reinstalling Windows and removing all personal files, apps and settings, so do this only on the pilot laptop and only once you have confirmed it holds nothing you need. If BitLocker is on, have the recovery key to hand before you start. Do not restart the laptop yourself while the reset runs, because Microsoft warns that this can make it fail. The Autopilot registration lives in the service rather than on the disk, so the reset does not remove it.
Connect a network cable if you can. With a wired connection, the laptop downloads its profile straight away and OOBE follows it from the first screen. On Wi-Fi, the country or region and keyboard screens appear first, even where the profile would skip them, because the profile cannot be downloaded until the laptop is online. The laptop may also restart once to install critical updates before Autopilot begins.
#What the pilot user sees
Once the profile has downloaded, the Microsoft Entra sign-in page appears with your company branding from Part 1. The pilot user signs in with their work account and completes multifactor authentication if they are prompted. On Windows 11 they select Sign in; on Windows 10 the button is Next.
The ESP then shows three phases, and each one waits for something different
- Device preparation joins the laptop to Microsoft Entra ID and registers it for management.
- Device setup installs what is assigned to
SG-Autopilot-Devices-Pilot: the blocking Win32 apps, device-targeted profiles and the quality update. This is usually the longest phase, and the only one in which Microsoft supports a restart. - Account setup applies what is assigned to the user, then the desktop appears.
Following along? Tap a step’s number to tick it off.
On Windows 11 the user can expand each phase with the ∨ arrow to see which item is still installing; Windows 10 uses Show details. Note the time each phase starts and finishes. Those times are the evidence you need when you review the time-out at the end of this part.
#When the ESP stops with an error
A time-out is not a dead end, because the error page from Part 4 gives you the tools to find the cause. Because you set Allow users to use device if installation error occurs to No, the laptop stays on that page rather than letting the user past.
Start with the logs, before anyone selects reset. The quickest options are on the error page itself:
- Collect logs copies the log files to a USB drive.
- On Windows 11, View diagnostics, or Ctrl+Shift+D, opens the Autopilot diagnostics page. It shows what the deployment was tracking and where it stopped. It needs user-driven mode and a work or school account, which the pilot uses.
For the full set of logs, press Shift+F10 to open a command prompt; this works on any device that is not in S mode. Then run the command Microsoft gives for user-driven deployments:
1mdmdiagnosticstool.exe -area Autopilot -cab C:\Users\Public\Documents\AutopilotDiag.cabIt only reads diagnostic data and writes one file, so it changes nothing on the laptop. Copy the cab to a USB drive before any reset, since a reset deletes it.
Intune also collects logs for you. Autopilot diagnostics are captured automatically when a deployment fails, and the feature is on by default. To get them, go to Devices > All devices, open the laptop, then select Diagnostics > Download. Intune captures at most one automatic set per device each day and deletes collections after 28 days.
To read a cab file, Microsoft points to the Get-AutopilotDiagnostics script from the PowerShell Gallery. Run it on your admin workstation, not the pilot laptop:
1Install-Script -Name Get-AutopilotDiagnostics -Force
2Get-AutopilotDiagnostics -CABFile C:\Temp\AutopilotDiag.cabIt summarises what the cab recorded about the deployment, which is quicker than reading the raw registry dump. Look for the first tracked item that failed or never finished: that is usually your answer. To undo the script install afterwards, run Uninstall-Script -Name Get-AutopilotDiagnostics.
#Why device setup times out
Most device setup time-outs come back to an app. Microsoft names app deployment failures as a cause of ESP time-outs, whether from wrong app configuration, network problems or something specific to the device. The table pairs what the logs show with the usual fix.
| What the logs or screen show | Likely cause | What to do |
|---|---|---|
| A blocking app reports an error and the ESP stops installing | The app’s install command, detection rule or requirement rule is wrong | Test the Win32 app on a spare enrolled device, fix the package, then rerun |
| “Another installation is in progress, please try again later” | A line-of-business MSI app, or the Teams Machine-Wide Installer, installing alongside Win32 apps | Repackage the MSI as a Win32 app, as Part 4 advised |
| A blocking app is never installed or never tracked | It is not assigned as Required to the device group, or it has user-context requirements | Assign it as Required to SG-Autopilot-Devices-Pilot and make it install in system context |
| Setup hangs after an unexpected restart | An app installer restarts the device, or a policy forces a restart during account setup | Remove the restart from the package and let Intune manage it |
| Device setup is still working at 90 minutes, with no error | Large apps and the quality update on a slow connection | Use a faster connection for the pilot, or raise the time-out in a measured step |
Some policies break the ESP too. Microsoft lists password and device lock policies, AppLocker, User Account Control and virtualisation-based security policies that force restarts, an AutoAdminLogon value of 0, and disabling the Microsoft Account Sign-in Assistant service. If the apps look healthy, check what else is assigned to the pilot groups.
Once you have fixed the cause, let the pilot user select Reset on the error page, which you allowed in Part 4, and the deployment starts again.
#Confirm the deployment in Intune
A desktop on the laptop is a good sign, but the proof sits in the admin centres. Check four things:
- In Devices > All devices, the laptop appears under its
PILOT-name from the device name template. - In the Microsoft Entra admin centre, Entra ID > Devices > All devices, filtered by join type, shows it as Microsoft Entra joined.
- Its compliance state reads Compliant once your compliance policies have been evaluated, which can take a while after the first sign-in.
- Each blocking app shows as installed for the device in the app’s install status.
Then open Devices > Monitor > Windows Autopilot deployments. Microsoft describes this report as a summary of deployment details for Autopilot devices over the last 30 days, so it keeps a record of the run alongside your own timings.
#Revisit the time-out
Your phase timings now replace the guess from Part 4. If device setup finished well inside 90 minutes on an ordinary connection, bring the time-out in Autopilot Pilot ESP down to leave a sensible margin, so a user on a failed deployment is not kept waiting. If it came close to the limit, look at the blocking list before raising the number, because one app fewer is often worth more than ten minutes more. Neither change affects a laptop that has already finished.
#Where Part 6 picks up
The pilot laptop has now gone from box to desktop with the user doing nothing but signing in: Microsoft Entra joined, enrolled under a PILOT- name, with its blocking apps installed and diagnostics you know how to collect. Part 6 covers the rest of the device’s life. It compares Autopilot Reset, Wipe and Fresh Start for passing the laptop to a new user, and retires a device in Microsoft’s order: delete it from Intune first, then deregister it from Autopilot, without deleting its Microsoft Entra object by hand.
About this page
Credited to
Dates
Published
Sources
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Related labs
Calculators and what-if tools that go with this article.
Recommended reading
More from KBY that goes with this article.
- Microsoft Intune error
0x800705b4: Autopilot self-deploying mode fails at Securing your hardware
2 min read


Related articles
Enterprise IT Management
Part 3: Create a Windows Autopilot Deployment Profile and Dynamic Device Group in Intune
Build a dynamic device group on the AP-Pilot group tag and assign it a user-driven Entra join profile. Wait for the profile status to show Assigned before you deploy.
ReadEnterprise IT Management
Part 2: Register Devices in Windows Autopilot: Import Hardware Hashes into Intune
Capture a pilot laptop's hardware hash with Get-WindowsAutopilotInfo, tag it AP-Pilot and import the CSV into Intune. Leave the Entra device object it creates alone.
ReadEnterprise IT Management
Part 4: Configure the Intune Enrollment Status Page for Autopilot: Blocking Apps and Timeout
A custom ESP profile on the Autopilot device group, a short Win32 blocking list, quality updates on, and a 90-minute time-out chosen for a reason.
ReadEnterprise IT Management
Block Automatic External Email Forwarding in Exchange Online With an Approved-Sender Exception
Turn off automatic external email forwarding in Exchange Online, keep it for an approved group, test for 5.7.520 and roll back safely.
ReadDiscover more
Graduate Learning
- TutorialNarrowing an Intune Policy to the Right Devices with an Assignment Filter
- TutorialCollecting Diagnostics from a Windows Device in Intune and Reading What Comes Back
- TutorialTracing an Endpoint and Device Management Problem with Microsoft Intune
- TutorialRolling Out Intune Endpoint Privilege Management Safely
Ops Playbook
- PlaybookFind the Windows Apps That Crash Most With Intune’s Application Reliability Report
- PlaybookDeploy Teams Rooms on Windows With Autopilot Self-Deploying Mode and Autologin
- PlaybookInstall the Configuration Manager Client During Windows Autopilot With Intune Co-Management Settings
- PlaybookMigrate Group Policy to Intune With Group Policy Analytics Before Moving Autopilot to Entra Join
Lexicon Definitions
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Engineering insights, direct to you.
Receive the latest Systems Engineering tutorials, production guides, Engineering Labs and operational best practices.
Comments
Add a thoughtful note on Part 5: Run Your First Windows Autopilot Deployment and Fix ESP Device Setup Timeouts. Comments are checked for spam and held for moderation before appearing.