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}
 

2020 | Scott W. Head  |  Sr. Systems Admin | Certified Microsoft Windows Server Administrator