Powershell - Find Computer By OS

AD - Find Computer By OS


PS C:\> Get-ADComputer -Filter "OperatingSystem -like
'*Server*'" -properties OperatingSystem,OperatingSystem
ServicePack | Select Name,Op* | format-list

Spiceworks link
https://community.spiceworks.com/scripts/show/3275-ad-find-computer-by-os