Modify a Dynamic Distribution List to include only a specific Recipient Container

cms36 1 Reputation point
2021-04-05T19:28:38.55+00:00

I have a existing ddl list that works fine but I want to narrow it down to one recipient container. I run the following command and it completes with no errors but users from other ou's still appear in the list. Any help will be appreciated.

Thanks!

set-DynamicDistributionGroup -Identity "testlist" -RecipientFilter {((title -eq "OpsUser 1") -or (title -eq "OpsUser2") -or (title -eq "OpsUser3") -or (name -eq "smithb"))} -RecipientContainer "abc.org\employees"

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Eric Yin-MSFT 4,396 Reputation points
    2021-04-06T02:22:08.297+00:00

    Hi,
    In my lab it's easy to change the container:
    84637-3.png
    When you run "Get-OrganizationalUnit |fl name", can you find "abc.org\employees" listed?
    And is it changed in "Get-DynamicDistributionGroup ddg2|fl RecipientContainer"?
    How did you check the OU members, the correct commands are:

    $FTE = Get-DynamicDistributionGroup "ddg2"  
    Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter -OrganizationalUnit $FTE.RecipientContainer  
    

    Besides, which CU are you in? On-premise Exchange server or Exchange online?


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

Your answer

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