TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
List of processes running on Remote/Local Computer using C#
Shweta Lodha
Feb 08, 2014
29.9
k
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
Given snippet will give the list of all the processes running on local as well as remote machine.
ArrayList alist = new ArrayList();
// From remote machine
Process
[] processes =
Process
.GetProcesses(
"RemoteComputerName"
);
foreach
(
Process
process
in
processes)
{
alist.Add(process.ProcessName);
}
// From local machine
Process
[] processess =
Process
.GetProcesses();
foreach
(
Process
process
in
processess)
{
alist.Add(process.ProcessName);
}
Next Recommended Reading
Get All Installed SQL Server Instances On Local Machine Using C#