title: Kill multiple processes running from a given path on remote machine
body: <p>I have a following problem:
  I'm in need of a code that will close all running process from a given path on a remote machine.</p>
  
  <p>So far I've found and came up with those 2 lines but none of them actually work.</p>
  
  <pre><code>Get-Process | Where-Object {$_.Path -like "\\$computername\C$\Program Files (x86)\Adobe\Adobe Reader 10.0\Reader\**"} | Stop-Process -Force    
  </code></pre>
  
  <p>This is the second line I've found but still does not want to work with me :)</p>
  
  <pre><code>Get-WmiObject Win32_Process -Filter "ExecutablePath LIKE '\\$computername\C$\Program Files (x86)\Adobe\Adobe Reader 10.0\Reader\'" -ComputerName $computername | Invoke-WmiMethod -Name Terminate    
  </code></pre>
  
  <p>I will be happy to get some advice. Belive that this is something rather simple to do..I hope that is.. :)</p>