AzureAD Connect - Add OUs to import scope using powershell

shockoMS 256 Reputation points

Using AzureAD Connect v2. Is it possible to add an OU to the scope of import to the metaverse using Powershell? Currently I do this by opening the Synchronization Service Manager -> Configure Directory Partitions - Containers and checking the OU(s). I'd like to automate this process though.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,774 questions
{count} votes

Accepted answer
  1. Givary-MSFT 28,571 Reputation points Microsoft Employee

    @shockoMS Discussed the above mentioned issue with my team, there're no powershell cmdlets available to achieve this ask.

    Please note that you should use AADC config wizard instead to configure domain/OU filter, not the option in Synchronization Service Manager.

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. shockoMS 256 Reputation points

    Out of interest why should I use the wizard option as opposed to the Synchronization Service Manager?

    0 comments No comments