PowerShell Grouping

<#
    Helpful When you need to get some data and group

    them together for purpose of gettng counts
     
#>

Get-service | Group-Object {$_.Status} -NoElement


Get-Process | Group-Object -Property Name -NoElement | Where-Object {$_.Count -gt 1}
 

Grouping1.png
Grouping2.png