I have an security group (Cloud_Sec) and I will change its owner via PowerShell.
First step is to log in to Exchange Online PowerShell
Second is to get Security group information to make sure it is good,
Get-DistributionGroup -identity “Cloud_Sec”
last command I type is to set a new manager
Set-DistributionGroup -Identity “Cloud_Sec” -ManagedBy “email@example.com” -BypassSecurityGroupManagerCheck
Let’s check it from GUI
Reminder: If you don’t type “-BypassSecurityGroupManagerCheck”, you will get error message.
Any question, please let us know