MyITGuy
11/10/2016 - 4:44 PM

PowerShell: Operating System count from Active Directory

PowerShell: Operating System count from Active Directory

Get-ADComputer -Filter "name -like '*'" -Properties operatingSystem | group -Property operatingSystem | Select Name,Count | Sort Name | ft -AutoSize