Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide

Let’s learn more about the Windows Autopilot Hybrid Domain Join Step by Step Implementation guide. This post will learn details about the Windows Autopilot Hybrid Domain Join scenario.

In most Windows Autopilot deployments, Windows 10 or Windows 11 machine is Azure AD joined. But the majority of the organizations still rely upon On-premise on-prem Active directory join.

Hybrid Azure AD is domain joined plus Azure AD registered devices. So you will need to have connectivity to the on-prem active directory, and you also will need to have additional components such as Intune Connector for Active Directory.

Following are some of the basic posts related to Windows Autopilot. Hopefully, these posts will help you to start the Windows Autopilot journey.

Patch My PC

1. Beginners Guide Setup Windows Autopilot Deployment
2. Dynamically Deploy Security Policies and Apps to Windows Autopilot Devices
3. Where is Autopilot Assign Profile Button in Intune Portal
4. Windows Autopilot End to End Process Guide
5. Repurpose/Reprovision Existing Devices to Windows Autopilot
6. Windows AutoPilot Profile AAD Dynamic Device Groups.
7. Windows Autopilot License Requirements

Introduction

Why are we talking about Hybrid Azure AD Join? Hybrid Azure AD Join is the same as Hybrid Domain join when your on-prem Active Directory is synced with Azure AD using AAD Connect.

There are many dependencies to have on-prem Active Directory or domain join Windows 10 Devices.

NOTE! – In this post, Hybrid Azure AD Join is referred to as Hybrid Domain Join and Domain Join.

Dependencies are mainly for Group policy and Application authentication (Legacy – mainly NTLM). Many organizations want to adopt a new deployment using Autopilot.

  • But at the same time, they also wish Windows 10 to be part of Active Directory.

Microsoft introduced the “Hybrid Azure AD or Hybrid Domain Join” deployment to meet the above criteria. You can deploy a Hybrid Autopilot profile from Intune.

  • With this solution, we can provision Windows 10 using Intune, and the computer will be joined to On-premise Active directory as well.

This is a series of posts as listed below.

  • Hybrid Azure AD join Architecture and How to setup Windows Autopilot from Intune Portal (This Post)
  • Hybrid Azure AD join Autopilot –  Troubleshooting Tips

Windows Autopilot Hybrid Domain Join Setup Architecture

Following the high-level architecture flow of Windows, Autopilot Hybrid Domain join setup architecture.

Windows Autopilot Hybrid Domain Join - Pic Credit to Microsoft
Windows Autopilot Hybrid Domain Join – Pic Credit to Microsoft 1

Windows Autopilot Workflow – Hybrid Azure AD Join

This section will see 12 steps workflow of the Windows Autopilot Hybrid Domain Join scenario.

Workflow - Windows Autopilot Hybrid Domain Join
Workflow – Windows Autopilot Hybrid Domain Join 2
  1. User Receive the Windows 10 Autopilot enabled computer from OEM or IT.
  2. User switches on the computer. The Computer connects Autopilot service and downloads a hybrid Autopilot profile (Windows Autopilot Hybrid Domain Join Profile).
  3. The user goes through the Autopilot OOBE and sign-in using the corporate account.
  4. Computer enrolled to Intune. Offline domain join configuration profile Deployed from Intune. Then Computer asks for an Offline domain to join the blob.
  5. Intune communicates with Intune AD connector. Intune AD connector installed in your on-premise server for offline domain join blob.
  6. Intune AD connector communicate with AD and create offline domain join blob.
  7. AD connector sent back the offline domain join blob to Intune.
  8. Intune sent the offline domain join blob to the device.
  9. The Computer applies the offline domain join blob and restarts—the user’s login with an AD credential.
  10. Intune deploy policy and apps to computer. (Enrollment status page – Optional).
  11. User prompted to log in using domain credential—the Group policies deployed from Active Directory. Intune also pushes policies in the back-end.
  12. User login and ready to work

Prerequisites for Hybrid Autopilot Setup

The Prerequisites for Windows Autopilot Hybrid Domain Join are divided into server and client-side.

Server-side Prerequisites

  • Configured hybrid Azure Active Directory join.
  • Windows 10 automatic MDM enrollment enabled
  • Windows Server 2016 or above (To Install the Intune AD Connector)
  • Internet connectivity on Intune Connector for Active Directory Server.
  • If there are any Internet proxies, make sure you go through this article.

Note: It is recommended to configure Intune AD connector to bypass the on-premises proxy.

Client-side Prerequisites

  • Windows 10, version 1809 or later.
  • Internet access. The Proxy rule should be applicable for the client-side and the server-side in the Windows Autopilot Hybrid Domain Join scenario.
  • Connectivity to Active Directory and domain controller during deployment.

NOTE! VPN connection to On-prem AD is not supported. VPN connection to on Prem AD is Supported now.

Hybrid Autopilot Configuration Steps

Let’s check the configurations required for Windows Autopilot Hybrid Domain Join setup into two. In this post, we will go through these configurations in detail.

  1. On-premise configurations
  2. Cloud configurations (Intune)

On-premise configurations

There are two configurations required as part of on-premise configurations.

  • Setup Intune AD Connector (Intune Connector for Active Directory)
  • Delegate Permissions

Intune AD connector (Intune Connector for Active Directory)

Following are the Intune AD connector requirement. Make sure that you have all the needs in place before the implementation.

  • The Intune Connector installation requires Windows Server 2016 or later.
  • Intune Connector Server should be able to communicate with Active Directory.
  • Intune Connector Server must have access to the internet. If you have a proxy in your environment, please follow the proxy recommendations.
  • In production, For High availability, Consider multiple servers with connectors.
  • If you have any Active Directory domains in your environment, consider a connector for each part.
  • Intune AD connector server system locale should be set to English US.

How to Configure Intune Connector for Active Directory

The following steps will help you complete the Intune AD connector configuration (Intune Connector for Active Directory) for Windows Autopilot Hybrid Domain Join scenarios.

  • Login to Intune Console.
  • Select Device enrollment > Windows enrollment > Intune Connector for Active Directory > Add connector > Click on the download Connector setup file.
Intune-Connector-for-Active-Directory-Setup-Fatal-Error-0x80070643-1
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 3

ODJConnectorBootstrapper.exe will be downloaded.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 1
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 4

Copy the ODJConnectorBootstrapper.exe to Server designated to host Intune Connector for Active Directory.

Install the executable ODJConnectorBootstrapper.exe.

Click Browse if you want to change the default installation path.

ODJConnectorBootstrapper.exe  Intune Connector for Active Directory

ODJConnectorBootstrapper.exe Intune Connector for Active Directory -Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 5

Select Configure after successful Intune AD connector installation

 Intune Connector for Active Directory Installation
Intune Connector for Active Directory Installation 6

Select Sign In.

Configure -  Intune Connector for Active Directory
Configure – Intune Connector for Active Directory 7

NOTE! – Sign in using Global Administrator or Intune Administrator user. Please ensure the admin has Intune license assigned.

Intune Connector for Active Directory gets enrolled. After a few minutes, Intune AD connector server starts communicating with Intune cloud service.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 2
The Intune Connector for Active Directory Successfully Enrolled – Windows Autopilot Hybrid Domain Join Scenario 8

NOTE! – For Intune connector Installation logs, you can navigate to below path. C:\Users\userid\AppData\Local\Temp\Intune_connector_for_Active_Directory_<Year>

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 3
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 9

You can refer to the below log for more details on Installation.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 4
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 10

NOTE! – After Signing in, Intune connector will start communicating with your Azure tenant. It takes less than 5 minutes for the connector to appear in the Intune console. Navigate to the below path to see all the connectors in your environment. Also, you can verify the latest Intune connector sync timestamp.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 5
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 11

Delegate permission for Intune Connector for Active Directory

The Offline Domain Join Connector service is responsible for creating Computer Objects. Offline Domain join Connector acts as a mediator.

Offline Domain join Connector service communicates with on-premise Active Directory and Intune cloud.

As shown in the below picture, the Connector service works with the local system account. Hence the server computer object (SERVERNAME$) must have permission to create the computer objects in AD.

Intune ODJConnector Service - Windows Autopilot Hybrid Domain Join
Intune ODJConnector Service – Windows Autopilot Hybrid Domain Join 12

NOTE! – By default, all domain accounts have permission to join a maximum of 10 computers to AD. To change this default behavior, you need to delegate permission. Let’s configure the permission.

  • Launch Active Directory Users and Computers (DSA.msc).
  • Right-click the organizational unit and then select Delegate Control.
Delegate Control for Intune Connector for Active Directory - Windows Autopilot Hybrid Domain Join Scenario
Delegate Control for Intune Connector for Active Directory – Windows Autopilot Hybrid Domain Join Scenario 13

Select “Next” to continue.

Windows Autopilot Hybrid Azure AD Join - Intune Connector Delegation
Windows Autopilot Hybrid Azure AD Join – Intune Connector Delegation 14

In the Delegation of Control wizard, add your Intune connector server computer object.

Select Create a custom task to delegate > Next.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 6
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 15

Select the Computer objects, Create selected objects in this folder, Delete selected objects in this folder checkboxes, and select the Next button to continue.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 7
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 16

Under Permissions, select the Full Control check box as shown below.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 8
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 17

You have completed the permission delegation for the Intune AD connector to create Offline Domain join blob for Windows Autopilot Hybrid Domain Join Scenario.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 9
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 18

Intune cloud Side Configurations

This section will go through different configurations required within the Intune console for Windows Autopilot Hybrid Azure AD Join (Windows Autopilot Hybrid Domain Join) scenario.

Intune Autopilot Profile Configuration

The following configurations will help you configure the Windows Autopilot hybrid domain join scenario.

  • Login to Intune, select Device enrollment > Windows enrollment > Deployment Profiles > Create Profile.
  • Type a Name and, optionally, a Description.
  • For Deployment mode, select User-driven.
  • In the Join to Azure AD as box, select Hybrid Azure AD joined.
  • Select Out-of-box experience (OOBE). Configure the OOBE options as needed and create a profile.
Intune Windows Autopilot Profile Configuration
Intune Windows Autopilot Profile Configuration 19

On the profile page, select Assignments. And Select groups.

In the Select group pane, select your device group. Please make Autopilot computer hardware ID imported and added to the device group.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 10
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 20

Intune Configuration Profile – Hybrid Domain Join

This section will go through three(3) configurations for Windows Autopilot Hybrid Domain Join. These configurations define in three(3) settings.

  1. Computer naming template
  2. Domain name
  3. Organization Unit path
  • In Intune, select Device configuration > Profiles > Create Profile.
  • Select Windows 10 and later.
  • Profile type: Select Domain Join.
  • Provide a Computer name prefix, Domain name, and (optional) Organizational unit in DN format.
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 11
Intune Offline Domain Join – Windows Autopilot Hybrid Azure AD 21

Notes from the Field:

#1 – Please ensure the Organization unit is in DN format. If there is any typo, your computer will be stuck with the message “Please wait while we set up your device.” I will cover this in my second post. If you don’t update the Organization unit, the default computer container is used.

#2 – Hybrid autopilot supports computer naming using the prefix. You cannot use variables such as %SERIAL%. If you use variables, then you will get the error message “Something went wrong” with code “80180005” or “80070774“. I will explain this in my second post.

  • Assign the profile to the Autopilot device group.
Offline Domain Join Assignment - Windows Autopilot Hybrid Domain Join
Offline Domain Join Assignment – Windows Autopilot Hybrid Domain Join 22

CSP to Disable User Setting in ESP

In the Windows Autopilot Hybrid Domain Join profile scenario, you may observe an error in the enrollment status page (ESP). This error is because of the timeout mentioned in Michael Niehaus’s post.

Below CSP configuration will prevent this timeout error. In my second post, I will explain the Windows Autopilot Hybrid Domain Join Troubleshooting Tips. Let’s go through the steps to configure this CSP.

./Vendor/MSFT/DMClient/Provider/MS DM Server/FirstSyncStatus/SkipUserStatusPage

Navigate via Intune blade – Create a profileSettingsConfigureCustom OMA-URI Settings – Windows 10 and later – Add OMA-URI settings.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 23

Assign the CSP to the Autopilot device group.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 12
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 24

(Optional) Turn on the Enrollment Status Page

It is recommended to enable the Enrollment status page. For more details, refer here.

Results – Windows Autopilot Hybrid Domain Join

After completing Windows 10 deployment using Hybrid Autopilot, you will get below Login screen. As seen below, you can log in to the computer using an AD Domain user account.

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 13
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 25

After login, you can verify whether your machine is a Hybrid domain join or not by executing the below command.

dsregcmd /status

Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 14
Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide 26

In my second post, we will go through events and logs that help troubleshoot.

Resources

39 thoughts on “Windows Autopilot Hybrid Domain Join Step by Step Implementation Guide”

  1. I keep having errors the whole day, “Please wait while we set up your device” but I have configed everything correctly and it has been working for months until today

    Reply
  2. I am confused, when i am first set this up for a customer. I have to be onprem with the domain controller? maybe I assumed I could go thourgh the steps and do an offline domain join, reseal the device send it to the customer domain joined with all of their apps needed to run.

    Reply
  3. Hi Vimal. Thanks for the article, finally got some better documentation for this. Dtill, I have two problems:
    1. As per Derek’s question, I am also confused. My understanding was that Intune is a way to manage devices that are not inside the local network. And a hybrid deployment will mix the local AD control ( policy, software deployment) with Azure control. I have people both in the main office, with computers joined to AD and people in remote offices that do not have a DC and their computers are not joined to the domain. I was hoping I can add this remote group to Azure and have them managed from there, while still having the local users joined both to the local Domain and Azure ( I am also using AAD connect). From the previous answer it looks like I cannot do that, because the user has to be in my office. Is this true?
    2. I tried to install the connector on a 2016 server that I have just installed and promoted as a DC. AAD connect is running on a different, 2008R2 server. In the end, when I tried to sign up using my account ( I am global admin in Azure and have a Microsoft E3 license assign, which includes Intune) it asked for the username and password, but it did not finish the installation. It is still asking me to pick a user, if I select is it gets back there. Any advice on how to deal with this? The connector service shows as working, but it is not showing in the Intune admin page.
    Thanks

    Reply
    • 1, As part of Hybrid autopilot provisioning user login is required. And User authentication will happen against on premise domain controller. Hence Hybrid autopilot require Device to be on corporate network.

      Reply
  4. There’s a section regarding delegate control:
    1. Launch Active Directory Users and Computers (DSA.msc).
    2. Right-click the organizational unit and then select Delegate Control.

    Step 2 says right-click the OU. What OU? Is this the OU that administrators put machines into if they want the machines to be hybrid joined and managed by autopilot/intune mdm?

    Reply
  5. hi.
    thanks for you post – very helpful.
    just a quick one.
    the delegated OU (hold the on perm computer object created by the connector) need to be synced as well ?
    the sync refer to the ad connect of course – as device sync is a requirements for “hybrid join” scenario.
    or maybe we move the device to “already synced” OU after the object created on the Local AD (delegate OU).

    thanks in advance!

    Reply
  6. The “NOTE! – VPN connection to On-prem AD is not supported.” isn’t true. I am able to perform remote Autopilot enrollment with Hybrid AD Join by pushing Always On VPN and SCEP Certificate policies.

    Reply
  7. Great article. Question is Device write back needed. Not ADConnect sync, I have thins configured already. I mean Device wrote back.
    Thanks again.

    Reply
  8. Can you tell me if the Autopilot Hybrid join over VPN process is supported with Azure ADDS. Azure AD connector is not required with Azure ADDS. I am testing at the minute and it is not working, it is not getting an ODJ blob and the ODJ server event logs show no events related to the process. I don’t know if there is an issue with ADDS being not supported or if I have set it up wrong. My settings look good.

    Reply
    • I am not sure which exactly connector you mean, do you mean the AD connect to sync the device from AD to AAD, I think those connectors are required. Also the intune connector is very important.
      If you set up everything and are sure that it is exactly like described in all those guides, then you could check some ODJ server proxy setting guides.
      https://oofhours.com/2019/07/27/configuring-the-intune-connector-for-ad-to-use-a-proxy-server/
      What i am doing currently to troubleshoot issues, is to use the autopilot diagnostics powershell script from Niehaus and also the network tool fiddler to check which network traffic is going on and which traffic will be blocked.

      Reply
  9. Hello,
    thank you very much for this great article, as I am currently looking at the theory of the scenario to Hybrid Join via VPN. One thing confuses me if I look at the 12 Steps workflow in the beginning.

    In Step 9 you describe that the Offline Domain Join Blob is applied, the computer is restarted and the user has to logon with AD credentials.

    In Step 10 you describe that Intune Apps and policies are applied.

    Since we think of an OEM device, how am I supposed to get VPN up and running if the user is supposed to logon with AD credentials in Step 9 before Intune installs apps in Step 10? I’d need Intune to install apps beforehand so VPN would be present before the user is able to logon. Is this a misunderstanding of the diagram or an error in the diagram? Or is the VPN client subject to be included in the image!?

    Reply
  10. Hi.

    What is the impact to existing computer Windows Autopilot assigned group, if I want to change the organizational unit to new OU?

    Reply
  11. I realize this article is old but I just came across it. I have everything setup and working fine but have a few questions.

    First, if I run “dsregcmd /status” when I first log in, it says AzureADJoined: NO, it will eventually change to YES. The errorcode is 0x801c03f3 and the server message is “THe device object by the given id is not found” Is this normal behavior?

    Second, when I first log in, I get the message about “Work or school account problem” Has anyone run into this? Am I doing something wrong?

    Third, I get two devices in Azure with the same name. Both have the Autopilot icon. One is Hybrid Azure AD joined and the other is Azure AD registered. How do I get rid of the Azure AD registered one since it is an Autopilot device? Better yet, how do I get it to not appear?

    Reply
    • I think the initial delay is because of AAD Connect Sync. Normally it takes 20-25 minutes I guess after the domain join. You can check whether the device record is available in the AAD portal at the time of the first login or not. So the other errors are probably due to AAD Device registration issue?

      Reply
  12. I waited about an hour to sign in (after the “Setting up your device for work” screen) and deregcmd still showed as not joined. The duplicate computer names never go away either.

    Reply
  13. Thank you very much for this details instructions, it work well for me. I also have some questions for you:

    We have different office locations and each location have their own user and devices OU in AD, also we have different naming convention for different location. How do I :

    1. Joining the device to respective OU based on user account?
    2. We define the device name based on our naming convention?

    My idea is once the user enter it’s credential, based on user’s location (maybe in one of the user attributes), create device name in respective to the location’s naming convention and in the respective location OU.

    Appreciate your 2cents 🙂

    Reply
  14. Hi Anoop,

    You mentioned in one of the requirement for Intune AD connector “Intune AD connector server system locale should be set to English US.”. Is it mandatory this to set English US even then connector server system local to English Australia?

    Thank you,
    Sheetal

    Reply
  15. You mention in one line “In the Select group pane, select your device group. Please make Autopilot computer hardware ID imported and added to the device group.” but I have no idea what this relates to. Do you have a separate article that goes through this specifically ?

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.