https://microsoftandbeyond.blogspot.c...
https://drive.google.com/drive/folder...
How to Create Distribution Groups, Add Members to Distribution Groups, and Add Contacts on Office 365 Portal using PowerShell.
1. Create Distribution Groups.
PowerShell Cmd:
Import-CSV “C:\temp\distgroups.csv” | foreach {New-DistributionGroup -Name $_.name -PrimarySmtpAddress $_.PrimaryEmail -Type $_.Type}
2. Add Members in Distribution Groups
PowerShell Cmd:
Import-Csv “C:\temp\neurogroupmembers.csv” | foreach {Add-DistributionGroupMember -Identity $_.identity -Member $_.members}
3. Add contacts in Office 365 Portal
PowerShell Cmd:
Import-Csv “C:\temp\ExternalContacts.csv” |%{New-MailContact -Name $_.Name -DisplayName $_.Name -ExternalEmailAddress $_.ExternalEmailAddress}
Watch video How to Create bulk Distribution Groups, Add Members and Add Contacts on Office 365 using PowerShell online without registration, duration hours minute second in high quality. This video was added by user Microsoft & beyond 15 June 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,353 once and liked it 93 people.