Get all processes running on the remote computer

G

Guest

// Get all processes running on the remote computer.
Process [] remoteAll = Process.GetProcesses("XYZ");

when I am exectuing the above code, it is giving excetpion saying "Couldn't
get process information from remote machine." though my network connection is
perfect and "XYZ" is my remote computers full computer name. I tried the same
with IP address and even then it is failing. Same code works fine if the IP
or computer name is local.

Can anyone help me in knowing why the above is happening?

Thanks in advance
Chidvilas
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

Some things to check:

a) You have sufficient permissions to read this information from the remote
machine (usually required administrative rights)
b) Check that WMI is configured properly to provide this info
c) Remote access to the registry is enabled on the remote machine

Regarding b) and c), these are rather ideas than exact instructions - I
remember this has something to do with the things mentioned, but have never
accessed the remote processes by myself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top