1 2 3 4 5 6 7 8 9 10 11 | $a = Read-Host "Nombre proceso a buscar" foreach ($ap in Get-Content "F:\pcs.txt") { foreach ($i in Get-Process -ComputerName $ap) { if ($i.name -eq $a) { Write-Host $ap $i.name -foregroundcolor "green" } } } |
1 2 3 4 5 6 7 8 9 10 11 | $a = Read-Host "Nombre proceso a buscar" foreach ($ap in Get-Content "F:\pcs.txt") { foreach ($i in Get-Process -ComputerName $ap) { if ($i.name -eq $a) { Write-Host $ap $i.name -foregroundcolor "green" } } } |