How can I identify which process launched another process. RRS feed

  • Question

  • How can I identify which process launched another process in Windows Server 2008 R2 Std.

    I have a C# program that executes an SQL script.  Once it gets the data back, it calls Excel and outputs the data to a workbook.  There are multiple instances of this c# program running at any one time, and there are multiple instances of Excel running at any one time.

    The C# and the Excel are running non-interactively.

    In Process Explorer, I see the C# executable running under winint.exe/services.exe/scheduler.exe (scheduler is a customer service).

    I see the Excel running under Winint.exe/service.exe/svchost.exe

    When I try to see the parent process of the Excel the best I can do is find the PID of svchost.

    What I want to see is the PID of the C# process that launched Excel.

    I have tried the various SysInternals utilities and Task Manager without luck.


    Wednesday, December 21, 2016 12:57 PM

All replies