List Processes running on remote machine? How?

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
 
M

M. Zeeshan Mustafa

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.
 
R

Roger

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
 
R

Roger

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
 
M

M. Zeeshan Mustafa

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?
 

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