views:

6

answers:

0

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.