ComputerNames = Dostawać-Zadawalać C:\MyTextFile.txt
$MyDevice = "Ingenico i3070"
Foreach (Computer w ComputerNames) {
$Results = "Fałszywy"
Dostawać-WMIObject Win32_PNPEntity - ComputerName Computer | Dokąd {$_.Name - jak $MyDevice} | % {$Results = "Prawdziwy"}
"Computer, $Results"
}
|