ComputerNames = Inhoud C:\MyTextFile.txt
$MyDevice = „Ingenico i3070“
Foreach (Computer in ComputerNames) {
$Results = „Vals“
Krijgen-WMIObject Win32_PNPEntity - ComputerName Computer | Waar {$_.Name - zoals $MyDevice} | % {$Results = „Waar“}
„Computer, $Results“
}
|