Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Currently I am getting count of current running processes of local machine as shown below:
C# CODE:

Process current = new Process();

Process[] localmachine = Process.GetProcesses(); ///Loacal machine
int count = localmachine.Count();

Process[] remotemachine= Process.GetProcesses("Prakash-PC");//Remote machine gives error
int count1 = remotemachine.Count();


So, how do I get the count of running processes of other machine which is in network. If possible How?? It shows error:

Couldn't connect to remote machine.
Posted
Comments
Richard MacCutchan 4-Jun-14 4:15am    
You need to check that you are able to login to the remote system in order to obtain this information.

check below article
Manage Processes on Remote Machine[^]
 
Share this answer
 
Mostly a permission issue.

Refer - GetProcess Error "Couldn't connect to remote machine"[^].
Quote:
"Couldn't connect to remote machine"
Error states that you don't have proper access permissions in place to connect and access it's processes. You need to make sure security privileges are in place and firewall issues are not there. Remote PC/server should allow remote connections.
 
Share this answer
 
Comments
Pranav-BiTwiser 4-Jun-14 4:56am    
read comment of mine on that page

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900