The below script with change the owner of a group, giving the new owner admin rights to the group.

Connecting to Office 365

Changing the group owner using Set-DistributionGroup

Change the GroupAlias and NewOwnersEmailAddress to the relevant values.

Author: Phil Eddies

I am an IT Operations Manager, managing all aspects of the IT infrastructure and service for a mid sized UK based company. I have been working full time in IT since 2001 in 1st to 3rd line and System Administration roles. MCSA, MCSE, CCNA, Citrix CCA