azureblog.co.uk
Intune error · Autopilot

0x80004005

Microsoft Entra hybrid join Autopilot deployments can time out with this generic error during the deployment.

Hex0x80004005
Decimal-2147467259 (unsigned 2147500037)
AreaAutopilot

How to fix it

Install the fix: KB5065789 or later for 25H2, KB5065426 or later for 24H2, or KB5070312 or later for 23H2.

Find it on the device

Collect the Autopilot diagnostics on the device (press Shift + F10 during OOBE for a command prompt), then look for the code:

powershell3 lineshover a line number for notes
mdmdiagnosticstool.exe -area "Autopilot;TPM" -cab C:\Temp\autopilot.cab
Get-WinEvent -LogName "Microsoft-Windows-ModernDeployment-Diagnostics-Provider/Autopilot" -MaxEvents 200 |
    Where-Object Message -match "0x80004005" | Format-List TimeCreated, Id, Message
What each line does
  1. Line 2: Reads win event details.
  2. Line 3: Keeps only the items that match the condition.

Other autopilot errors

Search all 116 codes →

Spotted something out of date or wrong? Tell us and we'll fix it.