ComputerNames = Få-Tillfredsställer C:\MyTextFile.txt
$MyDevice = ”Ingenico i3070”,
Foreach (Computer i ComputerNames) {
$Results = ”falskt”,
Få-WMIObject Win32_PNPEntity - ComputerName Computer | Var {$_.Name - lika $MyDevice} | % {$Results = ”riktigt”}
”Computer, $Results”,
}
|