Forum Discussion

denisdm91's avatar
denisdm91
Copper Contributor
Jun 08, 2023

Windows Servers AAD Hybrid Joined and SCCM ConfigMgr Co-Management MDM Auto-Enrollment

I have doubts about some configurations.

Basically, we have:

  • sccm installation with co-management performed via cloud-attach wizard
    • intune pilot group device collection configured
  • default client setting policy allows device registration in azure ad
  • azure ad connect configured for hybrid join
  • mdm user scope configured to all in azure ad
    • mam user scope configured to none
  • users can register devices in azure ad (Users may join devices to Azure AD)
  • business premium licenses
  • usage location configured in the azure ad synced user
  • no conditional access or mfa configured

The situation is that both client and server are synchronized in azure ad and are seen as join type "hybrid azure ad joined".

 

In azure ad the clients has as mdm "microsoft configuration manager", the same clients then on intune in the managed column by show "co-managed".

Servers on the other hand (windows 2016) are not automatically enrolled in intune and i don't understand why, the are hybrid azure ad joined in azure ad as devices.

 

Other unclear thing, do i have to create the gpo for automatic enrollment in active directory (enable automatic mdm enrollment using default azure ad credentials)?

At the moment it is created and linked to the OU containing servers and set as "device credential" (i read in documentation that with sccm or azure virtual desktop it is supported), even if i set in "user credential" anyway it doesn't work.

 

With the gpo applied the scheduled task is created but in the events I get the following error: Auto MDM Enroll: Device Credential (0x1), Failed (Unknown Win32 Error code: 0x8018001c)

 

By doing a dsregcmd /status on the machine everything seems ok.

 

I don't understand what the best practices are regarding this gpo, and where I am going wrong.

  • Ash_Powell's avatar
    Ash_Powell
    Copper Contributor

    denisdm91 
    Did you solve this?
    I have the same issue in an environment with very similar configuration to yours.

    • denisdm91's avatar
      denisdm91
      Copper Contributor

      Hi Ash_Powell 

      1. checked network rules for the connectivity
      2. disabled azure ad registration for the domain joined devices by gpo
      3. deleted duplicated entries for devices in azure ad (azure ad registered)

      The problem was probably caused by azure ad registered device, there were two devices in azure ad with same id: one was hybrid joined and another one was azure ad registered.

       

      In addition we re-rechecked the hybrid join configuration in azure ad connect settings.

       

      Let me know, I could review the configuration and help you.

Resources