← 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.
| Log | Microsoft-Windows-TaskScheduler/Operational |
|---|---|
| Source | Microsoft-Windows-TaskScheduler |
| Area | Intune 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
| Code | Meaning |
|---|---|
2149056522 | Device is already enrolled in another MDM. |
Find it with PowerShell
Run on the machine that logs it.
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-TaskScheduler/Operational'; Id = 7016 } -MaxEvents 50 |
Format-List TimeCreated, Id, MessageHunt 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.
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-TaskScheduler/Operational" and EventID == 7016
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated descRelated Intune MDM events
- Event ID 75: Auto MDM Enroll: Succeeded
- Event ID 76: Auto MDM Enroll: Failed
- Event ID 306: SCEP certificate profile received (CspExecute)
- Event ID 400: MDM ConfigurationManager: Command failure status
- Event ID 401: MDM ConfigurationManager: CSP Node Operation
- Event ID 1506: WiFiConfigurationServiceProvider: Node set value
- Event ID 107: Auto-enrolment task triggered
- Event ID 102: Auto-enrolment task completed