question

cms36-1314 avatar image
0 Votes"
cms36-1314 asked EricYin-MSFT commented

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

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"

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

EricYin-MSFT avatar image
0 Votes"
EricYin-MSFT answered EricYin-MSFT commented

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.




3.png (9.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am writing here to confirm with you how the thing going now?
If you need further help, please provide more detailed information, so that we can give more appropriate suggestions.


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.


0 Votes 0 ·