Modify the Message Delivery Restrictions of Dynamic Distribution List

Hello Team,

I unable to modify the Message Delivery Restrictions tab in Dynamic distribution list. There were some Disable members in it. How to remove those from EMS.

Any help will be really appreciable

Thanks,
Andy
LVL 5
Addy NadiaExpertAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

systechadminConsultantCommented:
Please check the conditions for the dynamic distribution list. What are the parameters you have defined to create the DDL, accordingly if you are able to find the conditions or parameter then you can remove those parameters from the disabled user's property. it will be automatically updated
0
Amit KumarCommented:
First get all those are allowed to send emails to this DDL.

Get-DynamicDistributionGroup -Identity "GROUP-NAME-HERE" | Select -expand AcceptMessagesOnlyFrom | ft Name</em>

Now prepare a list with SamAccountName excluding disabled accounts and save them in Text file to import same list in DDL.

$People = gc C:\People.txt
ForEach ($Ppl in $People) {
   Set-DynamicDistributionGroup GROUP-Name-Here -AcceptMessagesOnlyFrom $Ppl}

----------------------------------------------------
There is one thing by doing above steps you may see existing members those are not removed actually, if above command works for you then to remove all members by below command and run adding people command again.

Set-DynamicDistributionGroup GROUP-Name-Here -AcceptMessagesOnlyFrom:$null
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.