← cd ~/intune-errors
// intune-errors · Autopilot
0x80004005
Microsoft Entra hybrid join Autopilot deployments can time out with this generic error during the deployment.
| Hex | 0x80004005 |
|---|---|
| Decimal | -2147467259 (unsigned 2147500037) |
| Area | Autopilot |
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:
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, MessageOther autopilot errors
- 0x80180022 Autopilot device enrollment failed with error HRESULT = 0x80180022
- 0x80180014 Enrollment blocked for AP device by SDM One Time Limit Check (DeviceNotSupported)
- 0x80070774 Something went wrong... error code 80070774
- 0x800705B4 Securing your hardware (Failed: 0x800705b4)
- 0x801C03EA Registering your device for mobile management (Failed: 3, 0x801C03EA)
- 0x81039001 E_AUTOPILOT_CLIENT_TPM_MAX_ATTESTATION_RETRY_EXCEEDED
- 0x81039023
- 0x81039024
- 0x80070490
- 0xC1036501