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
Pantelis Apostolidis is a Sr. Specialist, Azure at Microsoft and a former Microsoft Azure MVP. For the last 20 years, Pantelis has been involved to major cloud projects in Greece and abroad, helping companies to adopt and deploy cloud technologies, driving business value. He is entitled to a lot of Microsoft Expert Certifications, demonstrating his proven experience in delivering high quality solutions. He is an author, blogger and he is acting as a spokesperson for conferences, workshops and webinars. He is also an active member of several communities as a moderator in azureheads.gr and autoexec.gr. Follow him on Twitter @papostolidis.