locked
Powershell : Get child process of Explorer RRS feed

  • General discussion

  • Hi Scripting guy's! I am trying to figure out how to check if a process running under explorer.exe is running..

    How to get there is the puzzle...

    The thing is, when in powershell running "Control Printers" you can observe the process "Devices and Printers window" below explorer.exe in  Taskmanager .
    From there, you can terminate that window. I would like to in powershell wait for that process to finish, and then continue running my script. But neither "win32_process"," Sysinternals Process Explorer" nor "get-process" gives us information about the "Devices and Printers process"..
    Is C# the best option, or is it do-able at all?

    start-process control printers
    Wait-Process explorer

    Best regards TL

    • Changed type Bill_Stewart Wednesday, July 22, 2020 9:43 PM
    • Moved by Bill_Stewart Wednesday, July 22, 2020 9:43 PM Abandoned X/Y problem
    Wednesday, April 22, 2020 9:54 AM

All replies