SyntaxFix
Write A Post
Hire A Developer
Questions
easy way to do it: To get the actual user count:
$ADInfo = Get-ADGroup -Identity '<groupname>' -Properties Members $AdInfo.Members.Count
and you get the count easily, it is pretty fast as well for 20k+ users too