Forum Discussion
StefanFried
May 23, 2017Iron Contributor
Owner Count
a stupid question. i can't find a way to retrieve the amount of owners of a group. a group can have max 10 owners so therefore i'm heavily interested in this number ManagedBy (Get-UnifiedGroup)...
cfiessinger
Microsoft
May 24, 2017Please try this sample PS cmdlet:
Get-UnifiedGroup | Select Id, DisplayName,
@{Expression={([array](Get-UnifiedGroupLinks -Identity $_.Id -LinkType Owners)).Count }; Label='Owners'} | Sort-Object Owners -Descending | Format-Table displayname, Owners