title: Powershell how to get the ParentProcessID by the ProcessID
body: <p>I've problems to get the ParentProcessID from a Process where I have the ProcessID. I tried it like this, this is how it works with the ProcessID:</p>
  
  <pre><code>$p = Get-Process firefox
  $p.Id
  </code></pre>
  
  <p>But if I try it with the ParentProcessID, it doesn't work:</p>
  
  <pre><code>$p.ParentProcessId
  </code></pre>
  
  <p>Is there a way to get the ParentProcessID by the ProcessID?</p>