List Processes running on remote machine? How?

  • Thread starter Thread starter Roger
  • Start date Start date
R

Roger

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
 
Roger,
There is a method GetProcesses in System.Diagnostics.Process
class:

try this example:
Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses(<computername>)
Console.WriteLine(ps)
Next ps

replace <computername> with computer name you would like
to get running processes of. Make sure you've permissions on remote
computer to get list of processes.
 
I am getting a message : Feature is not supported for remote machines.

What does this mean?

I can connect to the computer and get drive space on both drives
(via VB.Net Code) as I have admin rights to the remote computer.

Thanks,

Rog
 
I finally got it to work. Some processes.names are causing trappable
errors, so now I just trap and go on.

I have noticed I am not getting the whole list of processes that are showing
up on the remote machines task manager process list?

Do you happen to have any insite on this?

thanks,

Roger
 
Roger sorry this does'nt happen with me.

If you are unable to find a way, why not put a web
service on remote computer and call it to get a list of processes?
 
Back
Top