$ComputerNames = Get-Content C:\MyTextFile.txt
$MyDevice = "Ingenico i3070"
Foreach ($Computer in $ComputerNames){
$Results = "False"
Get-WMIObject Win32_PNPEntity -ComputerName $Computer | Where {$_.Name -like $MyDevice} | %{$Results = "True"}
"$Computer, $Results"
}
|