What's wrong on me if I'm taking Microsoft's sample and it doesn't work?
The sample command and the expected result:
@(
@{ name = 'a' ; weight = 7 }
@{ name = 'b' ; weight = 1 }
@{ name = 'c' ; weight = 3 }
@{ name = 'd' ; weight = 7 }
) | Group-Object -Property weight -NoElement
Count Name
----- ----
1 1
1 3
2 7
The latest Windows 10 Enterprise 22H2.
