473,395 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Get all processes running on the remote computer

// 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
Nov 16 '05 #1
1 13680
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


Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger | last post by:
I would like to get a list of running processes on a remote machine. How is this possible via VB.Net? Is it possible? Can someone point me in the right direction. thanks, rog
0
by: Ralf Gross | last post by:
Hi, I'm monitoring a RedHat Enterprise 4 server with a DB2 8.2 database. Last week I added some processes which should be checked, to the net-snmp config. db2fmcd db2fmp db2dasrrm db2fmd
0
by: Christopher Attard | last post by:
Hi, I'm using the PerformanceCounter .NET class to obtain the "% Processor Time" for processes that are running on a remote host. These processes are obtained using the...
3
by: Paul Aspinall | last post by:
Hi I want to write a piece of code, that will check if a particular service is running on a particular machine. Can someone give me a pointer as to which classes would be useful?? Any sample code...
1
by: Syed Naveed Ausaf | last post by:
Hi all, My scenario is this: Central Server: on which a number of remote machines invoke services (implemented as web services, but doesn't matter what the choice of implementation is). ...
5
by: amir | last post by:
Hello All, Just wanted to know if c# has a class which can handle communication between neighbour computers in same network so if i run a program on one computer it will be able to bring up...
13
by: Godzilla | last post by:
Hello, How do you create/spawn new processes in XP over telnet using python? I.e. I would like to create a new process and have it running in the background... when I terminate the telnet...
1
by: | last post by:
Hi! I'm running a Python program on M$ Windows 2000 as a test monitor. The program should close various processes, mostly "Application error"-windows, as they are created. This works fine until...
1
by: DR | last post by:
What ports do i need to unblock on client and server (running msvsmon.exe) to debug remotely from my client box with visual studio 2005 pro? When I attach to remote process a connection shows up...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.