Bulk Add Members to Exchange Online Distribution Group
Using PowerShell Install ExchangeOnlineManagement module:
Install-Module ExchangeOnlineManagement -Scope CurrentUser
Import module:
Import-Module ExchangeOnlineManagement
Connect: Connect-ExchangeOnline
Prepare Users.csv with header EmailAddress and one email per line.
Run: $DG='group@company.com'
Import-Csv 'C:\Scripts\Users.csv' | ForEach-Object { Add-DistributionGroupMember -Identity $DG-Member $_.EmailAddress }
Verify: Get-DistributionGroupMember -Identity 'group@company.com' Disconnect: Disconnect-ExchangeOnline -Confirm:$false
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article