Hi,
I have a DL and i want to add multiple users in Acceptmessagesonlyfrom. I have saved the mutiple users in .txt. Is there a command to do that ?
Technology Tips and News
Hi,
I have a DL and i want to add multiple users in Acceptmessagesonlyfrom. I have saved the mutiple users in .txt. Is there a command to do that ?
Hi Bremen,
Try the following command :
$User= gc c:\user.txt
Set-DistributionGroup "Group_Name_Here"-AcceptMessagesOnlyFrom((Get-DistributionGroup "Group_Name_Here").AcceptMessagesOnlyFrom + $User)
Note:The text files dont need any headers or commas, just one name per line.
Best regards,