<img style=”background-image: none; margin: 0px 0px 0px 10px; padding-left: 0px; padding-right: 0px; display: inline; float: right; padding-top: 0px; border-width: 0px;” title=”spam” alt=”spam” src=”http://blog.jamesbmarshall.com/wp-content/uploads/2In part 1 of this guide I covered how to create a DDG that sent mail to users that had “Parent” in their CustomAttribute1 field. I also described how to test the DDG to ensure that the right users had been added.
In this part I’ll cover how to restrict access to the DDG. Sending mass emails to parents is not an uncommon event, but what if you want to moderate emails before they’re allowed to be sent? What if you want the DDG to be hidden from all your users to prevent misuse?
1. Hide DDG from the GAL
We can modify our existing “All Parents” group by using the following code that will remove it from the GAL:
Set-DynamicDistributionGroup "All Parents" –HiddenFromAddressListsEnabled $true
You can re-enable visibility in the GAL by changing $true to $false.
2. Enable moderation
The following code will turn moderation on, set the DDG moderator to a user whose alias is james, and send notifications only to internal senders whose mail is rejected by the moderator.
Set-DynamicDistributionGroup "All Parents" –ModerationEnabled $true –ModeratedBy james -SendModerationNotifications Internal
Any mail that is sent to the “All Parents” DDG now has to be manually moderated before it is passed on to the recipients.
More information on the additional parameters you can use with Dynamic Distribution Groups can be found on the Outlook Live help website.
Leave a Reply