Create Distribution Groups on Exchange using EMS

To create a distribution group on Exchange 2010, 2013 & Exchange Online using EMS the command is:

New-DistributionGroup -Name "Name" -DisplayName "Display Name" -Alias "Alias" -PrimarySmtpAddress "EmailAddress" -Type "Security or Distribution"

To create distribution groups from a list, using a bulk command first create a csv file with the groups details. The csv must have the Display Name, the Email Address and the alias for each group. The run the below command:

import-csv C:tempgroups.csv | foreach {New-DistributionGroup -Name $_.name -DisplayName $_.displayname -Alias $_.alias -PrimarySmtpAddress $_.emailaddress -Type Security }

Set the Distribution Group to require or not Sender Authentication. If this is True then only senders for inside the Exchange Organization can send emails to the list. It this is False then everyone can send emails to the list.

Set-DistributionGroup "Display Name" -RequireSenderAuthenticationEnabled $False

 

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.