Question : Look for a device powershell script

I need a powershell script that will look for a device in the device  manager.

I would like it to read computer names from a text file and check each pc for a device named ingenico i3070, This device will be listed under ports com and lpt

Answer : Look for a device powershell script

So this script will just output in the following format
Computername, True
Computername2, False
Computername3, False
Computername4, True
....

You may also want to verify that the name is correct by running:
Get-WMIObject Win32_PNPEntity | %{$_.Name}
on a computer that you know has that driver, to ensure that the names match up.
1:
2:
3:
4:
5:
6:
7:
8:
$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"
}
Random Solutions  
 
programming4us programming4us