Click here to Skip to main content
15,746,883 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
I want to know the current running processes on server machine of which I know the credentials with C#

What I have tried:

I have tried process.Get processed
But it unable to connect to the server with credentials . So I have tried management scope and the passing server name with credentials to the process.GetProcess but it doesn't worked
Updated 17-Jan-17 10:45am
Richard Deeming 16-Jan-17 12:57pm    
Click "Improve question" and add the code that you've already tried, and the full details of the error you received. Remember to indicate which line of code the error relates to.

1 solution

If the logged in user (who runs the application) has no access right to the remote server, you can not use GetProcesses...
You have to learn WMI...
There are some samples here (including the exact solution for you): WMI Tasks: Processes (Windows)[^]
Share this answer

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