azureblog.co.uk
← cd ~/intune-errors
// intune-errors · 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 lines
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

Other autopilot errors

Search all 116 codes →