Exchange distribution group query owner
When a classmate leaves his job, if the distribution group managed by the classmate wants to change the owner, you can use the following command to find out which group is the owner.
Get-DistributionGroup * | Where-Object {$_ .ManagedBy-like "* name *"}