I need your help.
I have a very long list of users that need to be added under AcceptMessagesOnlyFrom in a Distribution List.
Is this piece of code possible in any way to do it in bulk or do I have to do it manually
$Members = Import-CSV C:\temp\allusers.csv
ForEach-Object (Set-DistributionGroup -Identity "DistributionGroup" -AcceptMessagesOnlyFrom $Members)