title: GWMI Win32_Process query
body: <p>I am trying to determine with Powershell where a process is being ran from. The following will work if the process is running on C but not on any other drive. So if I have multiple drives that a process is running on, I get the result of no data:</p>
  
  <pre><code>gwmi Win32_Process | ? { $_.commandline -match "svchost" } | ft commandline.processid
  </code></pre>
  
  <p>What am I missing?</p>