Acceptmessagesonly from multiple users

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 ?

May 21st, 2015 3:37am

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,

Free Windows Admin Tool Kit Click here and download it now
May 22nd, 2015 3:46am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics