Link to home
Start Free TrialLog in
Avatar of Michael Leonard
Michael LeonardFlag for United States of America

asked on

need an AD cmdlets or POSH script to change authentication settings on QBDG's

we have a requirement to change the "Message Delivery Restrictions" on 100+ Query based distribution groups [dynamic groups]  to "Accept messages from" "All Senders"

all groups are in one OU.

can someone provide a way to make this change in bulk via script?

many thanks,

S.
ASKER CERTIFIED SOLUTION
Avatar of suriyaehnop
suriyaehnop
Flag of Malaysia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of David Carr
What is yours currently set to for the groups?
Avatar of Michael Leonard

ASKER

gkrew, it is currently set to only allow members of one group to send to it. need to clear this on all to allow all auth. to send to them. . thx
figured it out. required -AcceptMessagesOnlyFromSendersOrMembers $null

thx
Try this cmdlet

$Dynamic = Import-Csv C:\Dynamic.csv

Foreach ($DL in $Dynamic){


Set-DynamicDistributionGroup -Identity $DL.DynamicName -AcceptMessagesOnlyFrom:$null

}

Open in new window


Please note DynamicName is your CSV header
Hi Suriyaehnop, sorry I already assigned the points before I saw your post.

thanks for the response and posh code.

S.