Цитата tarasov.evgeny:
Не могу передать по конвейру в out-file »
|
Код:

foreach ($1 in $pslist) {
Write-host $1.name; Get-WmiObject -Class win32_process -ComputerName $1.name |
Select-Object path,name |
Where-Object -FilterScript {$_.path -notlike "c:\windows*"} |
Where-Object -FilterScript {$_.path -notlike "c:\Program files\*"} |
Out-File -FilePath "C:\out.txt" -Append
}