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.
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
"Chidvilas" <Ch*******@discussions.microsoft.com> wrote in message
news:7E**********************************@microsof t.com...
// 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