Thursday, May 30, 2013

How to create bulk email distribution groups?

To create bulk distribution groups at one time, and add multiple members to each distribution group, please take to the following steps:
1. Install and configure Windows PowerShell.
2. Connect Windows PowerShell to Exchange Online.
=========
Create bulk distribution groups at one time
1. Prepare a CSV file to import multiple distribution groups, and store it in local disk (for example, C:\distributiongroups.csv ).

For example:
Name, Type
Group1, Distribution
Group2, Distribution

Note:
Name represents display name of the distribution group.

2. Run the command below to bulk import several distribution groups:
Import-CSV "D:\distributiongroup.csv" | foreach {New-DistributionGroup -Name $_.name -Type $_.Type}
==========
Add multiple members to each distribution group
1.Prepare a CSV file to contain each user's information, including Display name, Alias, E-mail address, and then store it in local disk (for example, D:\list.csv ).

For example:
Display name, Alias, E-mail address
Member1, member1, member1@contoso.com
Member2, member2, member2@contoso.com

2. Import the CSV file to Exchange Online via PowerShell.
Run the cmdlet:
Import-Csv "D:\list.csv" | foreach{Add-DistributionGroupMember -Identity "GroupName" -Member $_.alias}
Note:
GroupName represents the distribution group needs to be added members.
 
After those steps, you can create multiple distribution groups at one time, and add several users into them.

1 comment:

  1. Thanks a bunch for sharing this with all people you actually recognize what you are talking about! Bookmarked. Kindly also discuss with my website.
    Consumer Email List

    ReplyDelete