473,385 Members | 1,347 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,385 software developers and data experts.

List Processes running on remote machine? How?

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
Jul 21 '05 #1
5 15039
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(<computern ame>)
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
"Roger" <da*****@netins.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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


Jul 21 '05 #2
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

"M. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
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(<computern ame>)
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
"Roger" <da*****@netins.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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


Jul 21 '05 #3
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/com.../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
"Roger" <da*****@netins.net> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
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

"M. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message
news:eo**************@tk2msftngp13.phx.gbl...
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(<computern ame>)
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
"Roger" <da*****@netins.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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



Jul 21 '05 #4
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. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
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/com.../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
"Roger" <da*****@netins.net> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
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

"M. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message news:eo**************@tk2msftngp13.phx.gbl...
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(<computern ame>)
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
"Roger" <da*****@netins.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
> 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
>
>



Jul 21 '05 #5
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
"Roger" <da*****@netins.net> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
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. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
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/com.../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
"Roger" <da*****@netins.net> wrote in message
news:OL**************@TK2MSFTNGP09.phx.gbl...
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

"M. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message news:eo**************@tk2msftngp13.phx.gbl...
> 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(<computern ame>) > 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
>
>
> "Roger" <da*****@netins.net> wrote in message
> news:%2****************@TK2MSFTNGP09.phx.gbl...
> > 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
> >
> >
>
>
>



Jul 21 '05 #6

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

Similar topics

9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
1
by: Chidvilas | last post by:
// 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...
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...
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: 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
2
by: J | last post by:
Hello, I'm using the following snippet of code to try and get a list of all the printers installed on this machine. I have installed some network printers on this machine and they just won't...
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: 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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.