title: Get computer OS version
body: <p>This script is working fine to get the OS version. I need to know who to get only Microsoft Windows 10 Pro in the result                                                               </p>
  
  <pre><code>$Computers = Get-Content C:\computerlist
  
  Foreach($Computer in $Computers)
  { 
  
  
  Get-WmiObject Win32_OperatingSystem -ComputerName $Computer -ErrorAction  SilentlyContinue | Select-Object CSName, Caption | sort CSName
  
  
  }
  </code></pre>