Groups | Blog | Home
all groups > dotnet general > june 2004 >

dotnet general : List Processes running on remote machine? How?


Roger
6/22/2004 11:54:56 PM
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
6/23/2004 8:18:24 AM
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

[quoted text, click to view]

M. Zeeshan Mustafa
6/23/2004 12:02:20 PM
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.

--
Hope this helps,
Zeeshan Mustafa, MCSD


[quoted text, click to view]


Roger
6/23/2004 4:57:36 PM
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





[quoted text, click to view]

M. Zeeshan Mustafa
6/23/2004 7:42:14 PM
I dont know why this problem is coming, Do you think RPC is enabled
on your computer and on remote computer? I think it works over RPC.

Test yourself using a script available at:
http://www.microsoft.com/technet/community/scriptcenter/process/scrpcs04.mspx

replace computer name with your computer name, and save it in .vbs file
and try.

good luck..

--
Hope this helps,
Zeeshan Mustafa, MCSD


[quoted text, click to view]

M. Zeeshan Mustafa
6/24/2004 12:16:57 PM
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?

--
Hope this helps,
Zeeshan Mustafa, MCSD


[quoted text, click to view]

AddThis Social Bookmark Button