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

0x8018001BMENROLL_E_PLATFORM_WRONG_STATE

An invalid operation was attempted, such as trying to enrol the same device twice or unenrol an unknown device.

Hex0x8018001B
Decimal-2145910757 (unsigned 2149056539)
AreaEnrollment

How to fix it

Check whether the device is already enrolled under Settings > Accounts > Access work or school before retrying.

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 "0x8018001B" |
    Format-List TimeCreated, Id, Message

Other enrollment errors

Search all 116 codes →