Forum Discussion
Grace Yin
Aug 25, 2017Iron Contributor
Is there a way to convert Office 365 group to Distribution group?
Hi, We have an Office 365 group and I granted a user "owner" permission, but she got permission error in her Outlook like below when she tried to edit the group. However she is able to edi...
- Aug 26, 2017
Only Outlook 2016 properly recognizes Groups and allows you to manage their members. And you need to use the relevant Group controls, not the address book dialog. Check the documentation here: https://support.office.com/en-us/article/Add-and-remove-group-members-in-Outlook-3b650f4a-5c9b-4f94-a1bb-0cca4b1091de
Nabil Fahmy
Dec 26, 2017Copper Contributor
can you please mention the power-shell commands in more details ?!
i just need to know the exact steps
i just need to know the exact steps
C_Yates
Mar 10, 2023Copper Contributor
This just gets all the members in the m365 group, creates and then adds them app to a new distribution group, it doesn't do anything destructive. I just found it easier to do this, then set the options on the distribution group afterwards.
I signed up just to post because I thought the other guy was being a bit mean.
What I've written isn't great, but it'll work.
#First open powershell as administrator (Start > run > type:ise > rclick powershell > run as administrator)
#Install Exchange Online Management Shell
Install-Module -Name ExchangeOnlineManagement
#Connect to Exchange Online, log in with your admin account
Connect-ExchangeOnline
#Source M365 Group (e.g. email address removed for privacy reasons)
$M365GroupName = 'source_m365group_name'
#Target Distribution Group (e.g. email address removed for privacy reasons)
$DistGroupName = 'testdist'
#Creates the new distribution group with the above name
New-DistributionGroup -Name $DistGroupName
#Get the Members from the M365 Group
$M365GroupMembers = Get-UnifiedGroup -Identity $M365GroupName | Get-UnifiedGroupLinks -LinkType Member | Select -expandproperty PrimarySmtpAddress
Foreach ($member in $M365GroupMembers){
"Adding $member..."
Add-DistributionGroupMember -Identity $DistGroupName -Member $member
}