Get process tree

Hi Is it possible to get the parent process name if I provide a process name? So if I provide RAVBg64.exe I will get the processname that actually calls this process.

August 21st, 2015 7:01am

Hi Is it possible to get the parent process name if I provide a process name? So if I provide RAVBg64.exe I will get the processname that actually calls this process.

Start with the below PS command:

get-wmiobject -class Win32_Process | where {$_.name -like "your image name.exe"} | select -property ParentProcessId,Name | fl

  • Proposed as answer by Chen VMVP 19 hours 58 minutes ago
Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 7:05am

Hi, this actually giving me only the Parent process ID, but not parent process name
August 21st, 2015 9:11am

Hi, this actually giving me only the Parent process ID, but not parent process name

Hi,

You can use a calculated property to get that information:

Get-WmiObject Win32_Process | 
    Where {$_.Name -eq 'blah.exe'} | 
        Select ParentProcessId,@{N='ParentProcessName';E={(Get-Process -Id $_.ParentProcessId).Name}}

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 9:39am

Hi Is it possible to get the parent process name if I provide a process name? So if I provide RAVBg64.exe I will get the processname that actually calls this process.

Start with the below PS command:

get-wmiobject -class Win32_Process | where {$_.name -like "your image name.exe"} | select -property ParentProcessId,Name | fl

  • Proposed as answer by Chen VMVP Friday, August 21, 2015 11:11 AM
August 21st, 2015 11:01am

Hi Is it possible to get the parent process name if I provide a process name? So if I provide RAVBg64.exe I will get the processname that actually calls this process.

Start with the below PS command:

get-wmiobject -class Win32_Process | where {$_.name -like "your image name.exe"} | select -property ParentProcessId,Name | fl

Free Windows Admin Tool Kit Click here and download it now
August 21st, 2015 11:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics