Skip to content

Ulysses Neves

Microsoft Entra ID, authentication, and hybrid identity troubleshooting.

Menu
  • Home
  • Microsoft Azure
  • Microsoft AD FS
  • Microsoft 365
  • Contact
  • Troubleshooting Index
Menu

Microsoft Entra Connect – Custom Installation – Step by Step

Posted on September 11, 2019

Update notice — September 2026: This article was originally published in 2019 and shows an earlier Azure AD Connect interface. The product is now called Microsoft Entra Connect. The original procedure has been preserved as a historical reference; before using it in production, consult the current Microsoft documentation below.

Current requirements: Microsoft recommends Windows Server 2025 or Windows Server 2022. TLS 1.2 must be enabled, and Microsoft Entra Connect Sync must be on version 2.5.79.0 or later before September 30, 2026 to avoid synchronization failures.

Source: Microsoft Entra Connect prerequisites and hardware: “All synchronization services in Microsoft Entra Connect Sync will stop working on September 30, 2026 if you’re not on at least version 2.5.79.0.”

Hello, everyone. In the last article, we showed how to install the Microsoft Entra Connect tool using express settings and synchronized a user created in the local AD using (delta) synchronization. If you haven’t read it yet, click this link.

In today’s article, we’ll perform the same installation, but now using the custom option and the PTA (pass-through authentication) authentication method, which validates all access to Azure services against the domain controllers on the internal network.

What is Microsoft Entra Connect Custom Install?

The express installation of Microsoft Entra Connect is the option used when you have a more complex environment and need to explore configurations that the express installation doesn’t support.

Consider this deployment if you have the scenario below:

  • You have more than one local forest.
  • You have more than 100,000 objects in the local domain.
  • You need access to different settings than the express installation.

For the custom installation, you need to have the credentials below during the installation:

  • Local Admin on the server
  • Admin on AD DS
  • Global Admin in Microsoft Entra ID
  • SA on the database, if you want to store the database on a separate server.

Requirements to perform the installation

  • AD Schema at least version 2003 or later.
  • It’s recommended to enable the domain recycle bin.
  • Windows Server Standard or better. Windows Server Essentials starting from the 2019 version is supported.
  • It’s not recommended to install on domain controllers for security reasons.
  • Installing the tool on a Windows Server Core is not supported.
  • It must be installed on Windows Server 2008 R2 or later with all updates.
  • It must have PowerShell version 3.0 and .Net Framework 4.5.1.

 Microsoft Entra Connect server configuration

Number of objects CPU Memory Disk
Less than 10,000 1.6GHz 4GB 70GB
Between 10,000 and 50,000 1.6GHz 4GB 70GB
Between 50,000 and 100,000 1.6GHz 16GB 100GB

For more information about the installation requirements for Microsoft Entra Connect, click this link. 

Custom installation of Microsoft Entra Connect

Download the Microsoft Entra Connect installer through this link.

This image's alt attribute is empty. The file name is 082919_1027_AzureADConn1.png

Run the AzureADConnect.msi file.

Accept the license terms and click Continue.

Click Customize.

On the screen below, you can use some customizations. We’ll explain each one of them.

Specify a custom installation location – Set a location on the server different from the default where you want to install the application.

Use an existing SQL Server – If you have a database server available, you can configure the Microsoft Entra Connect database on this server.

Use an existing service account – If you want the Microsoft Entra Connect service to use a specific service account, for example for proxy authentication purposes, configure this account.

Specify custom sync groups – By default, Microsoft Entra Connect creates four local groups on the server: ADSyncAdmins, ADSyncBrowse, ADSyncOperators, ADSyncPasswordSet. If you want to change these groups, you can do so through this option.

We’ll leave all of them unchecked and continue the installation by clicking Install.
We’ll keep Pass-through authentication selected and click Next.

Enter the Global Admin credentials in Microsoft Entra ID and click Next.

Let’s configure the existing domain by clicking Add Directory.

Select Use existing AD account with Domain Admin privileges and enter the credentials.
Click OK.

Below, we confirm that the domain was configured.
If you want to add other domains or forests, repeat the step above.
Click Next.

Check the UPN suffixes that will be used by users to access Azure services.
Microsoft Entra Connect uses userPrincipalName as the default attribute, but you can use another one by selecting the USER PRINCIPAL NAME checkbox.
We’ll keep the default and click Next.

Select the local domain you want to sync. On this screen, you can select specific domains and OUs to be synchronized to Microsoft Entra ID. In an upcoming post, we’ll explain how to filter objects by OU.
We’ll keep all objects selected and click Next.

On the screen below, you need to configure how users will be identified in Microsoft Entra ID and specify how to identify them in the local AD. We’ll explain each configuration item below.

This image's alt attribute is empty. The file name is image-19.png

Users are only represented once across all forests – Select this option if you have separate forests and users who aren’t part of more than one forest.

User identities exist across multiple directories – Select this option if you have users in different forests. To proceed with this option, you need to define an attribute for Microsoft Entra ID to use for the comparison:

  • Mail attribute – Synchronizes users and contacts using this attribute. If the attribute is blank, it won’t be synchronized.
  • ObjectSID and msExchangeMasterAccountSID/ msRTCSIP-OriginatorSid – Synchronizes users enabled in one forest with disabled users in a resource forest. One example is when you have only a Lync infrastructure and Exchange isn’t used.
  • sAMAccountName and MailNickName – Synchronizes users’ sign-in attributes.
  • A specific attribute – Synchronizes using an attribute defined by the administrator. Note: The selected attribute must exist in the metaverse, or the installation won’t complete.

Select how users should be identified with Azure AD – Source Anchor – Selecting this option to identify which attribute will be used to define users in Microsoft Entra ID.

Let Azure manage the source anchor for me – If you use this option, Azure uses the ms-DS-ConsistencyGuid attribute by default from version (1.1.524.0) onward for user objects and ObjectGUID for other objects. This attribute is immutable and is generated by the system.

A specific attribute – Select this option if you want to use another attribute to perform the synchronization. Note: Keep in mind that once configured, the attribute cannot be changed. Don’t select attributes that can be changed over time. Don’t use attributes with an @-sign or UPN. For more information about how to select the sourceAnchor, check out this link.

We’ll keep the options below selected and click Next.

On the screen below, you can filter the objects that will be synchronized by using groups.
We’ll keep the option to synchronize all users and devices and click Next.

The screen below presents other settings available for the hybrid environment. We’ll cover these settings in detail in another post.
Click Next.

Leave the Start the synchronization process when configuration completes option checked and click Install.

Enable staging mode – This option can be selected when you intend to implement high availability, test new configurations, or decommission a production server. When enabled, the server performs the import and SYNC, but doesn’t perform exports.

Check the notes and click Exit.

Validating the Microsoft Entra Connect service in the portal

You can validate the health of the synchronization service in the portal through this link.
Since we’re using PTA, authentication agents are required to perform user access checks against the domain.

In our scenario, we have only one agent installed on the Microsoft Entra Connect server itself. To achieve high availability, it’s recommended to have more than one active agent in the domain, or you’ll receive the message above.
To identify the agents installed on the servers, click Pass-through authentication in the window above.
You can see the server’s Fqdn, its IP, and its status.

Installing an agent on more servers

Click Download on the previous screen.
Click Accept terms & download.

Run the AADConnectAuthAgentSetup.exe installer on a server in the domain where you want to validate the authentication of the services in Azure.

Summary

In today’s article, we performed a custom installation of Microsoft Entra Connect using Pass-through authentication and explained how to check the health of the agents and services in the Azure portal.

In the next article, we’ll explain how to apply filters to objects synchronized to Microsoft Entra ID using OU-based filter.

I hope this content has helped enrich your knowledge of Azure.

Did you like the post? Like and share it.

If you have any suggestions or comments, let us know.

[ ]’s

Ulysses Neves

Related guides: Browse the Microsoft Identity Troubleshooting Index or the Microsoft Entra ID topic archive.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Microsoft Defender for Identity domain investigation: six questions to ask first September 10, 2026
  • Microsoft Entra Kerberos key rotation: what changes—and what administrators should check September 6, 2026
  • Microsoft Authenticator Will Block Jailbroken Devices in 2026 — What You Need to Know March 17, 2026
  • Enhancing Azure role activation security with FIDO2/Passkeys September 23, 2024
  • Microsoft Entra ID CAP | Enforcing WHfB using Authentication Strength April 21, 2024

Archives

  • September 2026
  • March 2026
  • September 2024
  • April 2024
  • February 2024
  • December 2023
  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019

Tags

#aaddownleveldevice #adfs #adfscertificate #adfscertificates #adfsmfaadapter #azureauth #azureCA #azuredevice #capolicy #cloudsummit2021 #conditionalaccess #conditionalaccesspolicy #deviceregistration #farmbehavior #gopasswordless #mfaserver #msidentity #namedlocation #securingazure #securingazuread #sslprivatekey #troubleshootingadfs #troubleshootingwaptrust #tshootadfs #waptrust #webapplicationproxy #WHFBcerttrust #whfbdeployment #WHfBhybridsetup #WHfBprovisioning #widdatabase adconnect AD FS authenticationstrength az500 azurepim Azure security cloudsecurity microsoft365 Microsoft Azure Microsoft Entra hybrid join Microsoft Entra ID Microsoft Entra MFA PowerShell WHfB
©2026 Ulysses Neves | Design: Newspaperly WordPress Theme
Ulysses Neves
Gerenciar Consentimento de Cookies
Para fornecer as melhores experiências, usamos tecnologias como cookies para armazenar e/ou acessar informações do dispositivo. O consentimento para essas tecnologias nos permitirá processar dados como comportamento de navegação ou IDs exclusivos neste site. Não consentir ou retirar o consentimento pode afetar negativamente certos recursos e funções.
Funcional Always active
O armazenamento ou acesso técnico é estritamente necessário para a finalidade legítima de permitir a utilização de um serviço específico explicitamente solicitado pelo assinante ou utilizador, ou com a finalidade exclusiva de efetuar a transmissão de uma comunicação através de uma rede de comunicações eletrónicas.
Preferências
O armazenamento ou acesso técnico é necessário para o propósito legítimo de armazenar preferências que não são solicitadas pelo assinante ou usuário.
Estatísticas
O armazenamento ou acesso técnico que é usado exclusivamente para fins estatísticos. O armazenamento técnico ou acesso que é usado exclusivamente para fins estatísticos anônimos. Sem uma intimação, conformidade voluntária por parte de seu provedor de serviços de Internet ou registros adicionais de terceiros, as informações armazenadas ou recuperadas apenas para esse fim geralmente não podem ser usadas para identificá-lo.
Marketing
O armazenamento ou acesso técnico é necessário para criar perfis de usuário para enviar publicidade ou para rastrear o usuário em um site ou em vários sites para fins de marketing semelhantes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Ver preferências
  • {title}
  • {title}
  • {title}