moar powershell – office365 group administration

No time for notes:

to check current ownership

get-distributiongroup -identity “display name of group” | fl

and look for managed by. if you use the set-distribution group with the -managedby flag, it will remove the current ownership, you will either need a script to add, which i don’t have right now, or to add with all owners listed. if only a few people are managing all without exception:

get-distributiongroup | set-distributiongorup -managedby admin1@domain.com,admin2@domain.com,admin3@domain.com -bypasssecuritygroupmanagercheck

to do it on just one

set-distributiongroup -identity “display name of group” -managedby admin1@domain.com,admin2@domain.com,admin3@domain.com -bypasssecuritygroupmanagercheck