Bulk add members to a distribution list (Office 365)

The below script is used to add list of members to certain Distribution List (DL) in Office 365. You can use PowerShell script.

PowerShell Script to add list of members to a single Distribution list (DL)
  • Make list of users/email in CSV format of single column “identity”
  • Run below command
$importData = import-csv -Path '<PATH TO CSV FILE>'
$importimportData | ForEach-Object {
      Add-DistributionGroupMember -Identity "all@nabilinvest.com.np" -Member $_.identity
      Write-host $_.identity 'pushed to distribution list'

Leave a Reply

Close Menu