25,081 questions
Using PowerShell or? Try something like this:
Get-MsolGroup -GroupType Security | ? {(Get-MsolGroupMember -GroupObjectId $_.ObjectId).count -eq 0 }
A more "modern" approach using the Graph SDK for PowerShell:
Get-MgGroup | ? {!(Get-MgGroupMember -GroupId $_.Id)}