I'm trying to loop through all groups on a specific domain and for each group perform a validation in the number of members, if some group exceeds the threshold then flag it and build a report.
I guess I should get all members and then perform the validation but I'm stuck on this, for example, Get-QADGroupMember can look into all groups or you have to enter a specific group?
If I try with a specific group, for example,
$a = Get-QADGroupMember 'localcontoso.com\Administrators'
I'm getting,
Get-QADGroupMember : Cannot resolve directory object for the given identity: 'localcontoso.com\Administrators'.
Any advice is welcome.