In many Exchange environments, distribution groups are heavily relied upon and require frequent changes. This recipe will cover the creation of distribution groups and how to add members to groups, which might be useful when performing these tasks interactively in the shell or through automated scripts.
Let's see how to create distribution groups using the following steps:
New-DistributionGroup -Name Sales
Get-Mailbox -OrganizationalUnit Sales | Add-DistributionGroupMember -Identity Sales