Auto MDM Enroll: Device Credential (0x0), Failed (The system tried to delete the JOIN of a drive that is not joined.)

Chandru Vijayan 1 Reputation point
2024-04-26T05:39:33.1466667+00:00

We are trying to enroll a device into a third party MDM via autopilot, the device successfully joins but the enrollment does not happen and the above error is found in the Devicemanagement-Enterprise-Diagnostics-provider event viewer logs

The following is the scenario

  1. The users logging is has P1/P2 License
  2. The user is a member of the user group that can join devices
  3. Hybrid azure environment
  4. the MDM app has been added and the server enrollment URLs are correctly configured
Microsoft Intune Enrollment
Microsoft Intune Enrollment
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Enrollment: The process of requesting, receiving, and installing a certificate.
1,360 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 13,085 Reputation points Microsoft Vendor
    2024-04-26T07:28:49.2566667+00:00

    @Chandru Vijayan,Thanks for posting in Q&A.

    For the error message in Intune, here are some troubleshooting steps.

    1.Make sure the windows device is Windows 10, version 1709 or later.

    2.Make sure MDM user scope is set to "All" and MAM user scope is set to "None" in Devices > Windows > Windows enrollment > Automatic Enrollment in Intune portal. 126982-image.png

    3.Make sure allow windows MDM in Enroll devices > Enrollment restrictions. 126991-image.png

    4.Run "dsregcmd /status" from the command line. Confirm that if both "AzureAdJoined" and "DomainJoined" are set to YES. And SSO State section displays "AzureAdPrt" as YES.

    5.You can refer the links below to troubleshoot.

    https://t3chn1ck.wordpress.com/2018/07/09/auto-mdm-enroll-failed-the-system-tried-to-delete-the-join-of-a-drive-that-is-not-joined/

    https://call4cloud.nl/2020/05/intune-auto-mdm-enrollment-for-devices-already-azure-ad-joined/

    Non-official, just fore reference.

    6.You can try to change the license to Microsoft 365 Business Premium to check whether the issue can be fixed.

    However, I noticed that you enrolled your device into a 3-party MDM and there may be compatibility issues with Hybrid AAD and Autopilot, so I suggest you contact the 3-party MDM engineers for more help.

    Thanks for your kind understanding.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.