Get-ADcomputer | Search by OS

Gather Information from Active Directory computers based off the operating system name export to CSV and open the file.