Windows 10, hybrid azure ad joined machine fails to autoenroll to intune.
Eventlog shows error:
MDM Policy Manager: Found bad enrollment () during merge. Deleting policies for the enrollment, Enrollment state is (0x3f). Evend ID 844.
Task Scheduler is also missing all tasks under EnterpriseMgmt. GPO for autoenrollment is applying and keys are in the registry.