Hybrid Domain Join – Setting up AD

May 12, 2021   |   by bgarmon

Hybrid Domain Join means your computer has a computer object record in Active Directory (AD) and a computer object record in Azure Active Directory (AAD). This blog explains how to setup Active Directory to support this process:

The 3 Steps Involved:

  1. Update AD Group Objects
  2. Azure AD Connect Configuration
  3. Enable Device Registration

Update AD Group Policy Objects

It is assumed you already have an AD Domain configured and functional. This step is about making sure you have the latest Group Policy Object (GPO) Policy Definition Files to enable Hybrid Domain Join.

There are some whacky things about AD that seem to defy conventional logic. One example of this is Group Policy Object (GPO) management. We now get 2 new versions of Windows 10 each year and with each new version come a new set of configuration options. When Windows 10 devices are joined to a domain, the primary configuration method for the device is going to be the AD GPO’s. One would think the GPOs would get updated with the new configuration options automatically by Windows Update, but they do not. Instead, IT Administrators must follow an overly complex process to update what Microsoft calls the Policy Definition Files. Microsoft creates thousands of definition files for each major build of Windows 10 and each one is stored in a file extension of *.ADMX. These files are bundled into a *.MSI available from Microsoft’s website. The advantage of this methodology is that IT Admins can choose to update All or only some of the *.ADMX files based on their specific configuration requirements. But for Hybrid Domain Join to function, your Domain Controller needs to be running the Windows 10 1803 or newer Policy Definition Files. Here’s what you need to do to update these:

  1. There are currently 6 versions of the Policy Definition Files, one for each major build of Windows 10. The good news is that they are backward compatible so you should only need the latest one but grab the one that matches the highest level of Windows 10 you have deployed. The bad news is that you’ll need to remember to repeat this process every time a new build of Windows 10 is released (aka every 6 months or so). Here is the link to Microsoft’s website to download the 20H2 version of the files:

    https://www.microsoft.com/download/details.aspx?id=102157 https://www.microsoft.com/download/details.aspx?id=102157


  2. The Administrative Templates (.admx) for Windows 10 October 2020 Update.msi should be run on your Domain Controller. Double-click it, click Next a few times and it’s done. But you are not because unlike most .MSI files which actually install a program, running this .MSI does not actually install the files, instead they are just extracted to C:\Program Files (x86)\Microsoft Group Policy\Windows 10 October 2020 Update (20H2)\PolicyDefinitions. There’s nothing intuitive about this as the .MSI doesn’t share this fact with you. So now you have to move the files to SYSVOL as described in the next step.
  3. With the files now extracted, use Windows File Explorer to copy the contents of the PolicyDefinitions folder from C:\Program Files (x86)\Microsoft Group Policy\Windows 10 October 2020 Update (20H2)\PolicyDefinitions to the SYSVOL\YOURdomain\Policies\PolicyDefinitions\ folder on your DC.

    In my lab, my domain is named lab.aftersixcomputers.com so my SYSVOL folder that I need to copy these to is \\lab.aftersixcomputers.com\SYSVOL\lab.aftersixcomputers.com\Policies\PolicyDefinitions . Adjust your folder path for your domain name.

    The end result will look like this:



    It’s worth noting that in versions of the MSI targeted at earlier releases of Windows 10, the extracted directory incorrectly added a space between the folder Policy and Definitions, making the folder that gets extracted end up with the name Policy Definitions instead of the required PolicyDefinitions. Make sure your folder does not include a space. This behavior was corrected in the 20H2 release of the MSI, but watch out for this if you are downloading older versions.
  4. And that’s it! Well, sort of. Depending on your Domain Infrastructure, you’ll need to wait for AD replication to occur so that these new files are replicated across the entire domain. Once AD replication completes you’ve now successfully updated the GPOs to support all the new Windows 10 features.

Azure AD Connect

Microsoft Azure AD Connect is a one-way sync tool of user accounts and other configuration items from AD to Azure AD. What you may not realize about the tool is that Microsoft updates it on a regular basis as they continue to change Azure. The tool does not include any auto-update functionality so you’ll have to download a new .MSI and run through an installation, then a set of configuration tasks to upgrade the existing installation. At the time of this writing 1.6.4.0 was the latest version. If you don’t know which version you have installed from the Windows Server running the tool, open the Start Menu > Settings > Apps and Features and you’ll see the version information under the program entry.

Here’s a link to Microsoft’s Download page for the tool:

https://www.microsoft.com/en-us/download/details.aspx?id=47594

Post install and upgrade, you’ll need to make sure you have the Device Options configured to allow Hybrid Domain Join to function. Launch the tool, choose Configure Device Options and walk through the next several configuration screens shown below to enable Hybrid Domain Join functionality.

Did you know you can also Hybrid Domain Join Windows 7 and 8 Devices as well? Cool.

The next two steps of the wizard require SCP and Federation configuration, a topic I won’t go into detail on here. Microsoft provides additional documentation on this subject here:

https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-federated-domains

With Azure AD Connect now configured to support Hybrid Domain Join, the next step is to configure the AD GPO for Device Registration.

Enable Device Registration

The next step is to configure a new GPO object to enable the Device Registration. Once this is enabled, any Windows 10 device that joins AD will trigger AD Connect to generate a computer object in Azure for the device.

  1. Open Group Policy Management Editor
  2. Right-click on your Domain and choose “Create a GPO in this domain, and Link it here…”
  3. Navigate to Computer Configuration > Policies > Administrative Templates > Windows Components > Device Registration as seen below.
  4. Enable the setting “Register domain joined computers as devices” as illustrated below
  5. With this in place, Microsoft recommends a few other things to think about as documented here: https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-fed-hybrid-azure-ad-join-post-config-tasks

Additional Documentation from Microsoft:

There are all types of ways to complicate this configuration so a few links from Microsoft are included below which cover some of these more complex setups:

https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-federated-domains

https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-control

https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-device-writeback

https://docs.microsoft.com/en-us/azure/active-directory/devices/hybrid-azuread-join-control

Tags:

Recent Comments

  1. Hybrid Domain Join via Workspace ONE UEM – After Six Computers

    Reply
    June 23, 2021 @ 12:36 pm

    […] If you want to use VMware Workspace ONE UEM + AutoPilot to achieve Hybrid Domain join this post is for you. If you don’t know what Hybrid Domain Join is, here’s my primer on it: https://www.aftersixcomputers.com/hybrid-domain-join/ […]

Leave Your Comment