azureblog.co.uk
← cd ~/intune-errors
// intune-errors · Enrollment

0x8018002AAuto MDM Enroll: Failed (Unknown Win32 Error code: 0x8018002a)

Microsoft Entra hybrid joined (co-managed) devices fail to auto-enrol because per-user MFA is set to Enforced, which stops the Configuration Manager client enrolling with the signed-in user's credentials.

Hex0x8018002A
Decimal-2145910742 (unsigned 2149056554)
AreaEnrollment

How to fix it

Set per-user MFA to Enabled rather than Enforced, or temporarily bypass MFA during enrolment using Trusted IPs.

Find it on the device

Enrolment errors are logged in Event Viewer under Applications and Services Logs › Microsoft › Windows › DeviceManagement-Enterprise-Diagnostics-Provider › Admin:

powershell3 lines
Get-WinEvent -LogName "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin" -MaxEvents 200 |
    Where-Object Message -match "0x8018002A" |
    Format-List TimeCreated, Id, Message

Other enrollment errors

Search all 116 codes →