To sync on-premises Active Directory with Microsoft Entra ID (formerly Azure AD), you can install and configure Microsoft Entra Connect on a domain controller.
Requirements
- A domain-joined server running Windows Server 2016 or later with a minimum of 4 GB RAM. For detailed server prerequisites, see Prerequisites for Microsoft Entra Cloud Sync in Microsoft Entra documentation.
- A Windows 10 or later computer joined to the domain controller
- Entra ID global administrator credentials
- .NET Framework 4.7.2 or later installed
- Sign in to the Microsoft Entra admin center.
- Download the Entra Connect setup file to your domain controller.
- Run the Entra Connect MSI package on your domain controller.
If you receive a TLS error when starting Entra Connect, you can run the following PowerShell script before proceeding:
If (-Not (Test-Path
'HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319'))
{
New-Item 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319'
-Force | Out-Null
}
[Rest of PowerShell script as provided]
- To accept the license terms, click Continue.
- Click Customize.
- Leave all options at their defaults, and then click Install.
- Select Password Hash Synchronization, and then click Next.
- Enter your Entra ID global administrator username and password, and then click Next.
- Add your local Active Directory.
- In the Forest menu, click .
- Enter your local administrator credentials.
- Click OK, and then click Next.
- Select Continue without matching all UPN suffixes to verified domains, and then click Next.
- On the Domain and OU Filtering screen, leave the default settings to sync the entire Active Directory, and then click Next.
- Leave the default settings for basic setup, and then click Next.
- Select any additional features on the Optional Features tab, and then click Next.
- Select Start the synchronization process when configuration completes.
- Click Install.
- After the installation completes, click Exit.
In the Entra admin center, Entra Connect is enabled, and the following status displays for each user: "On-premises sync enabled".