Command-line switches for Azure AD Connect

Azure AD Connect Splash Screen

After you install Azure AD Connect, but before you configure the product through the Microsoft Azure Active Directory Connect wizard, you can fiddle with the Azure AD Connect installer.

Below is a list of command-line switches that you can use:

Note:
The below list is based on Azure AD Connect version 1.5.45.0.

 

AzureADConnect.exe /UseExistingDatabase

When you have an existing ADSync database, you can use the /UseExistingDatabase command-line switch to Install Azure AD Connect by using an existing ADSync database. The new Azure AD Connect installation that is set up using this command-line switch will completely overwrite the contents of the database that was previously in use with another Azure AD Connect installation, but will use the same database name, schema, logins and permissions.

 

AzureADConnect.exe /SkipLDAPSearch

The /SkipLDAPSearch command-line switch can be used to configure Azure AD Connect to use the mS-DS-ConsistencyGUID attribute as its source anchor. By default, Azure AD Connect checks the contents of this attribute for objects in scope for synchronization, but this command-line switch instructs Azure AD Connect to skip this check. This switch is useful when you want to install a Staging Mode Azure AD Connect installation using the mS-DS-ConsistencyGUID attribute as its source anchor.

 

AzureADConnect.exe /ForceExport

The /ForceExport command-line switch can be used to create a parallel deployment of Azure AD Connect side by side of an existing DirSync implementation. This switch exports the DirSync settings so you can then import them into Azure AD Connect using the /Migrate command-line switch below.

 

AzureADConnect.exe /Migrate

The /Migrate command-line switch can be used to create a parallel deployment of Azure AD Connect side by side of an existing DirSync implementation for migration purposes. This switch imports the DirSync settings into Azure AD Connect.

 

AzureADConnect.exe /EnableLDAP

The /EnableLDAP command-line switch switches Azure AD Connect’s setup mode from Active Directory to an LDAPv3-compatible identity store.

2 Responses to Command-line switches for Azure AD Connect

  1.  

    Are the /forceexport /migrate switches basically how we create the standby AADC nodes today then?

    • The two command-line switches have no relationship to creating a Staging Mode Azure AD Connect installation, today.
      They stem from a time when DirSync was still relevant (pre April 2017).

      Under the hood, the logic of these command line switches might still be preserved, but I doubt it as DirSync was limited to one Active Directory forest and in terms of writeback functionality.
      To create a Staging Mode server and perform a swing migration use this information.

       

leave your comment

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