473,769 Members | 6,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Get all processes running on the remote computer

// Get all processes running on the remote computer.
Process [] remoteAll = Process.GetProc esses("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 13774
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*******@disc ussions.microso ft.com> wrote in message
news:7E******** *************** ***********@mic rosoft.com...
// Get all processes running on the remote computer.
Process [] remoteAll = Process.GetProc esses("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
15068
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
4038
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
1536
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 System.Diagnostics.Process.GetProcesses(host) method. I'm noticing that for some running processes, the program is throwing out an exception "Cannot read instance :<processname>". Is this a known issue or could it be solved? For e.g. on getting "% Processor Time"...
3
1504
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 would be appreciated Thanks
1
1548
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). Remote Servers: These are machine running at various sites worldwide. Each remote server would be on a separate network and separated from
5
1557
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 processes and have all other properties of controling the state of that process through a service which is already running on windows... that is, without opening sockets ??? Thanks, Amir.
13
3163
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 connection, I would what the spawned processes to keep running until I shut it off... I got the os.popen method to spawn a new process running in the backgroun, but not over telnet... tried os.popen and also subprocesses.popen without any luck...
1
1517
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 the screensaver gets active or until I press Ctrl-Alt-Del and choose "Lock my computer". At that point, my Python program cannot see any change when a "Application error" pops up. Without locked computer, it can identify these windows and close...
1
2535
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 in msvsmon.exe on the remote machine, however, the client box with visual studio displays error: "Unable to connect to the mricosoft visual studio remtoe debugging monitor named 'the box name' the micorosft visual studio remote debugging monitor...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.