How to Add Multiple Distribution List with Bulk Import in Office 365

Posted on

In office 365 admin not provided to add multiple group like add multiple user using csv.

But if you required to do it you can use Windows Azure Active Directory Module for Windows PowerShell. First you need to download it. refer to this following link : https://technet.microsoft.com/en-us/library/dn975125.aspx .

aad

after download windows azure active directory module for windows powershell run this command :

Type Credential user & password Office 365 :

$UserCredential = Get-Credential

Type for session Exchange Online :
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection

Import Session exchange online :
Import-PSSession $Session

Run this command to create multiple group :

Import-Csv “D:\DistributionList.csv” | Foreach {New-DistributionGroup -Name $_.name -DisplayName $_.DisplayName -Alias $_.Alias -PrimarySMTPAddress $_.PrimarySMTPAddress -Type $_.Type}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s