Kill a process on multiple remote machines
kill multiple processes on multiple remote machines
get-content .\killprocess.PS1
(Get-Content 'U:\Accounts\Computers.txt') | ForEach-Object {Get-WmiObject -computer $_ -class win32_process -filter "name = 'synergy.exe'" -credential $cred| %{$_.terminate()} | out-null}
How do I add a second process to terminate into the mix?
Thanks