How to get an instance of instance System.Diagnostics.Process by processID on a remote machine
Posted
by Tomas1
on Stack Overflow
See other posts from Stack Overflow
or by Tomas1
Published on 2010-06-09T15:05:13Z
Indexed on
2010/06/09
15:12 UTC
Read the original article
Hit count: 232
Hi all,
I want to run & control a process remotely, I found the best way is the WMI APIs,
The WMI gives me information about the remote process but I need more control like waiting it and getting the standard output and errors,
how can I do that, and can I get an instance of System.Diagnostics.Process class by instance ID remotely?
note: I tried to get an instance of the Process by Process.GetProcessByPID and passign machineName parameter, but and Exception has thrown.
Thanks in advance.
© Stack Overflow or respective owner