Set Send to permissions on distribution groups through powershell

We have an Exchange 2013 environment on which we have created distribution groups with powershell.

However I can't figure out how we can configure the "send to" permissions for these distribution groups.

What we want is for Exchange to look at CustomAttribute3 in a user account, and if that attribute meets the set requirements the user will have permission to send mail to this distribution group.

Can anyone help me with this issue? Is there a powershell command I can use to configure this?

kind regards,

kevin



March 24th, 2015 10:10pm

Hi kevin,

You can use the following cmdlet to configure the distribution group to accept messages only from the specific users.

Set-DistributionGroup -Identity "DGName" -AcceptMessagesOnlyFrom "xxx","xxx"

What's more, I am afraid that the -AcceptMessagesOnlyFrom parameter does not accept the custom attribute. Your understanding will be appreciated.

For your reference:

https://technet.microsoft.com/en-us/library/bb124955(v=exchg.150).aspx

Hope this can be helpful to you.

Best regards,

Free Windows Admin Tool Kit Click here and download it now
March 25th, 2015 5:42am

In my opinion the easiest method would be to:

1. Create a dynamic group which looks at customattribute3 to get the people who have the attribute you want

2. Set the distribution group you want to control who can send to it, to only accept messages from the dynamic group.

March 25th, 2015 6:04am

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

Other recent topics Other recent topics