Hi,
I am trying to copy permissions from an old list to a few new ones.
gc = C:\ListofUsers.txt
$group = "All Users"
foreach ($user in $group){
Set-DynamicDistributionGroup -identity $group -AcceptMessagesOnlyFromSendersorMembers $user
}
When i run the above only the last person in the list is added to the group.
Please can someone help me as this list has about 50 users and its gonna be painful copying it across a few others.