AzureAD Connect - Add OUs to import scope using powershell

shockoMS 281 Reputation points
2023-04-21T08:11:30.4266667+00:00

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.
25,031 questions
{count} votes

Accepted answer
  1. Givary-MSFT 35,606 Reputation points Microsoft Employee Moderator
    2023-04-25T10:32:28.28+00:00

    @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 281 Reputation points
    2023-06-10T18:21:44.17+00:00

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.