azureblog.co.uk
← cd ~/events
// events/7016 · Intune MDM

Event ID 7016Auto-enrolment task did not start

With error code 2149056522, the auto-enrolment task could not start because the device is already enrolled in another MDM.

LogMicrosoft-Windows-TaskScheduler/Operational
SourceMicrosoft-Windows-TaskScheduler
AreaIntune MDM

What to check

Unenrol the device from the other MDM solution, then let the task run again.

Codes you'll see in this event

CodeMeaning
2149056522Device is already enrolled in another MDM.

Find it with PowerShell

Run on the machine that logs it.

powershell2 lines
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-TaskScheduler/Operational'; Id = 7016 } -MaxEvents 50 |
    Format-List TimeCreated, Id, Message

Hunt for it in Sentinel or Log Analytics

This works once a data collection rule sends the Microsoft-Windows-TaskScheduler/Operational log to your workspace, where it lands in the Event table.

kql5 lines
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-TaskScheduler/Operational" and EventID == 7016
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated desc

Related Intune MDM events

Search all 123 event IDs →