SyntaxFix
Write A Post
Hire A Developer
Questions
Try:
$group = Get-ADGroup -Identity your-group-name -Properties * $group.members | count
This worked for me for a group with over 17000 members.