Skip to main content
Ameerpet, Hyderabad · Classroom & live online
Cloud Soft Solutions

Windows Autopilot Deployment and Troubleshooting: Hardware Hash, Profiles, ESP, Device Preparation and Logs

An end-to-end Windows Autopilot tutorial: hardware hash import, deployment profiles, user-driven, pre-provisioned and self-deploying modes, the Enrollment Status Page, how Autopilot device preparation differs, documented error codes and where the logs live.

Banner for a Windows Autopilot deployment and troubleshooting tutorial covering hardware hash import, deployment profiles and the Enrollment Status Page
Last updated · 16 min read · 3,476 words

Banner for a Windows Autopilot deployment and troubleshooting tutorial covering hardware hash import, deployment profiles and the Enrollment Status Page

Windows Autopilot lets you ship a laptop straight from the manufacturer to an employee. The user signs in, and the device joins Microsoft Entra ID, enrolls in Microsoft Intune and installs its apps without anyone building an image. When it works, it feels like magic. When it doesn't, you get a red screen during setup, a device that ignores its profile, or an Enrollment Status Page that spins for an hour. This tutorial walks through the classic Windows Autopilot deployment end to end, explains how the newer Windows Autopilot device preparation differs, and lists the documented errors and log locations you need to fix failures.

Every name and error code here comes from current Microsoft Learn documentation, listed in the Sources section. For interview preparation, pair this with our 2026 Intune interview Q&A pillar.

Two products with similar names

Microsoft now documents two separate solutions. Microsoft's own wording keeps them apart, so keep them apart in your head too:

  • Windows Autopilot uses a registered hardware hash, a Windows Autopilot deployment profile and the Enrollment Status Page (ESP). It supports user-driven, pre-provisioned, self-deploying and existing-device scenarios, and both Microsoft Entra join and Microsoft Entra hybrid join.
  • Windows Autopilot device preparation uses a Windows Autopilot device preparation policy and a device security group. It doesn't require device registration or use the ESP, and it supports only Microsoft Entra join.

Most of this article covers classic Windows Autopilot, because it has more moving parts to troubleshoot. Device preparation gets its own section further down.

How a classic Autopilot deployment flows

Microsoft's troubleshooting FAQ describes the same six stages for user-driven and self-deploying deployments. When something fails, first work out which stage you reached:

  1. A network connection is established, over Wi-Fi or Ethernet.
  2. The Windows Autopilot profile is downloaded from the deployment service.
  3. User authentication happens (user-driven mode only).
  4. The device joins Microsoft Entra ID.
  5. Automatic MDM enrollment happens, for example into Intune.
  6. Settings are applied, mostly while the Enrollment Status Page is showing.

The profile is downloaded as soon as the network is up, and again after each restart. Microsoft warns that a profile must exist in the tenant, so that a blank profile isn't cached on the device. To restart during OOBE and pull a fresh profile, press Shift+F10 and run shutdown.exe /r /t 0.

Step 1: Register the device with its hardware hash

OEMs and Microsoft partners can register devices for you. For manual registration you collect the device's hardware hash and upload it in a CSV file. Microsoft positions manual collection mainly for testing and evaluation, because Windows has to boot to capture the hash. It recommends registering through Microsoft Partner Center in most cases.

Collect the hash with PowerShell

On a device that has already finished setup, run this from an elevated PowerShell prompt to save the hash as a CSV file:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
New-Item -Type Directory -Path "C:\HWID"
Set-Location -Path "C:\HWID"
$env:Path += ";C:\Program Files\WindowsPowerShell\Scripts"
Set-ExecutionPolicy -Scope Process -ExecutionPolicy RemoteSigned
Install-Script -Name Get-WindowsAutopilotInfo
Get-WindowsAutopilotInfo -OutputFile AutopilotHWID.csv

On a device that is sitting in OOBE, press Shift+F10, start powershell.exe and upload the hash directly with Get-WindowsAutopilotInfo -Online. You sign in with an account that is at least an Intune Administrator. The script was updated in July 2023 to use the Microsoft Graph PowerShell modules, so make sure you have the latest version. On first run it prompts you to approve app permissions.

There are other documented ways to capture the hash. Configuration Manager collects hashes automatically. On Windows 11, the Autopilot Diagnostics Page in OOBE (Ctrl+Shift+D) can export logs that include a CSV with the hash. And Settings > Accounts > Access work or school > Export your management log files writes the files to C:\Users\Public\Documents\MDMDiagnostics.

Prepare and import the CSV

The header line must be exactly:

Device Serial Number,Windows Product ID,Hardware Hash,Group Tag,Assigned User

Microsoft's rules for the file:

  • A maximum of 500 rows per CSV file.
  • No extra columns and no quotation marks.
  • ANSI text only, not Unicode. Headers are case-sensitive.
  • Edit the file in a plain-text editor such as Notepad. Microsoft says saving it from Excel "doesn't generate a usable file for importing to Intune."
  • If you fill in Assigned User, use a valid UPN. Only the domain name is validated, and an invalid user can leave the device inaccessible until you remove the assignment.

To import, go to Devices > Windows > Enrollment > Windows Autopilot > Devices > Import. Then select Sync and Refresh until the devices appear.

Registration errors you will meet

ErrorMeaning, per Microsoft LearnWhat to do
ZtdDeviceAssignedToAnotherTenantThe hash matches a device already registered to a different tenant.The other tenant has to deregister it. Don't re-import it.
ZtdDeviceAlreadyAssignedThe hash matches a device already registered in your tenant.Search by serial number. Don't import it twice.
ZtdDeviceDuplicatedDuplicate hashes in the same CSV. Only one row is processed.Remove the duplicate rows.
InvalidZtdHardwareHashOne or more hash fields are invalid or empty. Manufacturer and serial number are required.Check with Get-CimInstance Win32_BaseBoard | Select-Object Manufacturer, SerialNumber.
StorageErrorA generic error.Retry later, and contact support if it persists.
Nothing happens when you select ImportUsually a badly formatted hash. A network trace shows HTTP 400, because Autopilot expects padded Base64.Follow Microsoft's padding procedure in the troubleshooting FAQ, then re-import.

Step 2: Create and assign the deployment profile

Go to Devices > Windows > Enrollment > Windows Autopilot > Deployment profiles > Create profile > Windows PC. A tenant can have up to 350 profiles. The key settings are:

  • Convert all targeted devices to Autopilot: registers corporate-owned, non-Autopilot devices in the assigned groups. Allow 48 hours. Turning this off later doesn't deregister the devices.
  • Deployment mode: User-driven or Self-deploying.
  • Join to Microsoft Entra ID as: Microsoft Entra joined. Hybrid join needs its own setup. Microsoft says it no longer recommends hybrid join for new devices, including through Autopilot.
  • Microsoft Software License Terms, Privacy settings, Hide change account options (needs company branding) and User account type (Administrator or Standard).
  • Allow pre-provisioned deployment: if this is No, a technician can still press the Windows key five times, but Intune enforces the setting and pre-provisioning fails with 0x80180005.
  • Language (Region) and Automatically configure keyboard: these need Ethernet, because Wi-Fi setup itself requires choosing a language and keyboard.
  • Apply device name template: up to 15 characters, using %SERIAL% or %RAND:x%. Hybrid devices take their name from the domain join profile instead.

After you assign the profile, watch the Profile Status column on the Autopilot devices list. It should move from Unassigned to Assigning to Assigned. Don't start setup until Date assigned is populated in the device properties. Three documented rules explain most "wrong profile" tickets:

  • If a device is in groups assigned to more than one profile, it gets the oldest created profile.
  • If you assign to All Devices, you can't use exclusions. Trying to can cause assignment problems.
  • Profile edits don't reach a device that is already enrolled until it is reset and enrolled again.

Step 3: Choose the right deployment mode

ModeWho is at the keyboardKey requirements and behaviour
User-drivenThe employee, who signs in with Microsoft Entra credentialsThe device is associated with the enrolling user. Supports Entra join and hybrid join.
Pre-provisionedA technician first (technician flow), then the employee (user flow)Physical device with TPM 2.0 and device attestation, and virtual machines aren't supported. Pro, Enterprise or Education edition. An ESP profile must be targeted to the device. Applies device-targeted policies and device-context apps in the technician phase.
Self-deployingNobody, or someone who only picks a language and Wi-FiMicrosoft Entra join only, with no hybrid join. TPM 2.0 with attestation. No primary user is set, so only device-targeted compliance policies apply. Suits kiosks, digital signage and shared devices.

Running pre-provisioning

At the first OOBE screen, the technician presses the Windows key five times, selects Windows Autopilot provisioning and Continue, checks the profile, organization and assigned user on the Windows Autopilot Configuration screen, then selects Provision. On success, Reseal shuts the device down ready to ship. Microsoft documents three timing rules for the user flow:

  • Wait at least 90 minutes after the technician flow before running the user flow, so tokens refresh properly.
  • Run the user flow within six months, or the certificates used by the Intune Management Extension may no longer be valid.
  • Compliance in Microsoft Entra ID is reset during the user flow. A device that looked compliant after the technician flow can show noncompliant until it re-evaluates. Our compliance troubleshooting tutorial covers what happens next.

Reusing self-deploying and pre-provisioned devices

A device can't automatically re-enroll through Autopilot after a self-deploying or pre-provisioned deployment. If you reset and redeploy it, you will see 0x80180014. Microsoft's fix is to select the device under Windows Autopilot > Devices and choose Unblock device, or to delete the Intune device record. The same code also appears when Windows (MDM) is set to Block in a device platform restriction.

On a virtual machine, or on hardware without TPM 2.0, self-deploying mode fails with a 0x800705B4 timeout during device verification. Microsoft notes that this includes Hyper-V virtual TPMs, so lab-test self-deploying and pre-provisioning on physical hardware.

Step 4: Configure the Enrollment Status Page

The ESP holds the user on a progress screen until the apps and policies you care about are installed. Create a profile at Devices > Device onboarding > Enrollment > Windows > Enrollment Status Page. You can have up to 51 profiles (Default plus 50). The settings that matter most for troubleshooting are:

  • Show app and profile configuration progress: must be Yes for the ESP to appear.
  • Show an error when installation takes longer than specified number of minutes: the default is 60.
  • Turn on log collection and diagnostics page for end users: Microsoft recommends Yes. It shows the collect logs button on failure and the Autopilot diagnostics page on Windows 11.
  • Block device use until all apps and profiles are installed, Allow users to reset device if installation error occurs and Allow users to use device if installation error occurs.
  • Block device use until these required apps are installed if they are assigned to the user/device: All or Selected, with up to 100 blocking apps.
  • Only fail selected blocking apps in technician phase: for pre-provisioning only.
  • Install Windows quality updates (might restart the device): defaults to Yes on new profiles and No on existing ones. It adds 20 to 40 minutes to provisioning.

The ESP tracks three phases: Device preparation, Device setup (device-targeted apps, SCEP certificates, Wi-Fi and VPN profiles) and Account setup (user-targeted items). It doesn't track general security policies, and it doesn't wait for PowerShell scripts. If an app needs a script to finish first, Microsoft says to build that prerequisite into the Win32 app deployment.

Documented ESP problems to recognise on sight:

  • "Another installation is in progress, please try again later": LOB (MSI) and Win32 apps both use TrustedInstaller, which can't run two installs at once. Don't mix LOB and Win32 apps in classic Autopilot.
  • Stuck at "Identifying": the current user may not have an Intune licence assigned.
  • Hybrid join takes longer than the timeout: on hybrid deployments the ESP takes 40 minutes longer than the configured value, so the AD connector has time to create the device record.
  • Hangs during app install: a reboot packaged inside an app can hang the ESP. Set reboot behaviour in Intune instead. Microsoft also recommends deploying Microsoft 365 Apps as a Win32 app type to avoid hangs.
  • Disabling the ESP profile doesn't remove it from devices that already received it.

Windows Autopilot device preparation: what's different

Device preparation is Microsoft's newer, simpler profile experience. Microsoft's comparison article says that "in its initial offering" it "isn't as feature rich as Windows Autopilot", but it has advantages of its own:

AreaWindows Autopilot device preparationWindows Autopilot
ModesUser-driven, automaticUser-driven, pre-provisioned, self-deploying, existing devices
Join typesMicrosoft Entra join onlyMicrosoft Entra join and Microsoft Entra hybrid join
Device registration requiredNoYes
Admin configuresDevice preparation policy, plus a device security group with Intune Provisioning Client as ownerDeployment profile and ESP
Delivered during OOBEDevice-based only. Up to 25 essential apps and up to 10 essential PowerShell scripts.Device and user ESP. Up to 100 blocking apps.
LOB and Win32 in the same deploymentYesNo
ReportingNear real-time deployment reportDeployment report for registered devices only, not real-time
Windows versionsWindows 11, version 24H2 or later, or 23H2/22H2 with KB5035942 or laterSupported Windows 11 and Windows 10 versions

The core idea is enrollment time grouping. When the user authenticates, the device is added to the security group named in the policy, and only the apps and scripts you selected in the policy install during OOBE. Other group assignments install after the deployment finishes. Policies assigned to the group are synced, but Microsoft notes they aren't tracked, so they may apply during or after the deployment.

Two precedence rules prevent confusion. If a device is registered for Windows Autopilot and not associated with the tenant, the Autopilot profile takes precedence. If it is associated through device association, device preparation runs. Device association is a newer capability that writes a TPM-backed tenant marker into UEFI firmware before enrollment. It enables device-targeted policies, automatic corporate marking and OOBE customisation. Because it was updated in December 2026, check its current documentation before you design around it. Device preparation doesn't use the ESP, so the ESP's quality-update setting doesn't apply to it.

Common Autopilot errors and what they mean

Symptom or codeDocumented causeFix
0x80180014Reusing a self-deploying or pre-provisioned device, or Windows (MDM) blocked by a platform restrictionUnblock device, or allow Windows (MDM)
0x80180005Pre-provisioning attempted while Allow pre-provisioned deployment is NoEnable the setting in the profile
0x800705B4Self-deploying on a VM or a device without TPM 2.0Use supported physical hardware
0x80070774Hybrid deployment: the Intune Connector for Active Directory is in a different domain from the targetInstall or configure the connector in the matching domain
80180018 on "Something went wrong"Enrollment issue, such as a missing licence or too many devicesCheck licences and device limits
"Can't connect to the URL of your organization's MDM terms of use"Usually licensingConfirm the user has an Intune, EMS or Microsoft 365 licence
Join type shows "Microsoft Entra registered"The device was registered before it was joined, and the old trust type was keptDelete the Intune, Entra and Autopilot objects, then re-register
Profile ignored after a motherboard changeHardware change. Status shows Fix pending or Attention required.Deregister and re-register
Event 807 ZtdDeviceIsNotRegisteredHash not uploaded, or no profile assignedCheck the import and the profile assignment
Event 815 ZtdDeviceHasNoAssignedProfileNo profile assigned and no default profileAssign a profile
Event 908 SerialNumberMismatchRecorded serial number or product key doesn't match the hardwareRe-register the device

Microsoft also lists policies that conflict with Autopilot. Examples include disabling the Microsoft Account sign-in assistant (Autopilot needs the wlidsvc service to get its profile), AppLocker CSP during the ESP (it triggers a reboot), and certain interactive-logon GPOs that stop pre-provisioning from working.

Where the logs live

SourceLocation or command
Autopilot event logEvent Viewer: Application and Services Logs > Microsoft > Windows > ModernDeployment-Diagnostics-Provider > Autopilot. Event 153 changing to ProfileState_Available means the profile downloaded.
MDM event logApplications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostic-Provider > Admin
Profile settings receivedRegistry HKLM\SOFTWARE\Microsoft\Provisioning\Diagnostics\Autopilot. Check CloudAssignedTenantDomain, TenantMatched and IsAutopilotDisabled.
Full MDM diagnostic bundlemdmdiagnosticstool.exe -area "DeviceEnrollment;DeviceProvisioning;Autopilot" -zip "c:\users\public\documents\MDMDiagReport.zip"
Intune Management Extension (Win32 apps)%ProgramData%\Microsoft\IntuneManagementExtension\Logs
On-screen diagnosticsWindows 11 user-driven mode: View Diagnostics or Ctrl+Shift+D, once the ESP log-collection setting is Yes
Automatic capture on failureEnabled by default. Download from the device in Devices > All devices > device > Diagnostics > Download. One set per day, kept for 28 days. The tenant toggle is labelled preview.
Hybrid connectorApplications and Services Logs > Microsoft > Intune > ODJConnectorService
Deployment reportDevices > Monitor > Windows Autopilot deployment status. In preview, with data kept for 30 days.

A troubleshooting routine that scales

  1. Identify the stage that failed: network, profile, authentication, join, enrollment or ESP.
  2. In Intune, confirm the device is registered, its profile status is Assigned and Date assigned is filled in.
  3. On the device, check the Autopilot event log and the registry values, so you know which tenant and profile it actually received.
  4. For self-deploying and pre-provisioning, confirm you are on physical TPM 2.0 hardware, and unblock the device if it is being reused.
  5. For ESP failures, look for mixed LOB and Win32 apps, reboots inside packages, unlicensed users and a timeout that is too short.
  6. Collect the diagnostics bundle before you reset anything.

Autopilot and ESP are a large part of the MD-102 exam. See how they fit the wider syllabus in our MD-102 study guide. Once devices are deployed, Conditional Access is usually what blocks or allows them, so continue with Conditional Access and device compliance. The join and identity concepts are covered in depth in the SC-300 exam guide. Our Intune interview questions include several Autopilot failure scenarios, and the Intune AI agent project shows how these logs can feed an automated triage assistant.

Practise this at Cloud Soft Solutions

In the Microsoft Intune course, you register devices, build deployment profiles and ESP profiles, compare classic Autopilot with device preparation, and read the logs described here in hands-on labs. Join the classroom batch in Ameerpet, Hyderabad, or attend online.

Sources

📞 Call +91 96660 19191 · +91 99496 16388 · WhatsApp
Cloud Soft Solutions, 513, 5th Floor, Aditya Enclave, Nilagiri Block, beside Ameerpet Metro Station, Ameerpet, Hyderabad 500016, Telangana, India

Frequently Asked Questions

How many devices can I import in one Autopilot CSV file?
Microsoft allows up to 500 rows per CSV file. The header must be Device Serial Number,Windows Product ID,Hardware Hash,Group Tag,Assigned User, and the file should be edited in a plain-text editor, not Excel.

What is the difference between Windows Autopilot and Windows Autopilot device preparation?
Windows Autopilot needs device registration, a deployment profile and the Enrollment Status Page, and it supports user-driven, pre-provisioned and self-deploying modes and hybrid join. Device preparation needs no registration and doesn't use the ESP. It supports user-driven and automatic modes with Microsoft Entra join only, and delivers up to 25 apps and 10 PowerShell scripts during OOBE.

Why does self-deploying mode fail with 0x800705B4?
Microsoft documents a 0x800705B4 timeout when self-deploying mode runs on a device without TPM 2.0 support or on a virtual machine, including Hyper-V virtual TPMs.

How do I fix error 0x80180014 when redeploying a device?
After a self-deploying or pre-provisioned deployment, select the device under Windows Autopilot devices and choose Unblock device, then redeploy. The error can also occur if Windows (MDM) is blocked in a device platform restriction.

Where does Windows Autopilot write its event log?
In Event Viewer under Application and Services Logs, Microsoft, Windows, ModernDeployment-Diagnostics-Provider, Autopilot. Profile settings are stored in HKLM\SOFTWARE\Microsoft\Provisioning\Diagnostics\Autopilot.

Why does the ESP show Another installation is in progress?
LOB (MSI) and Win32 apps both use TrustedInstaller, which can't run two installations at once. Microsoft advises not mixing LOB and Win32 apps in classic Autopilot. Device preparation supports mixing because it doesn't use the ESP.

Share𝕏inf✉
EnrollWhatsAppCall us