Will Web 3.0 Replace Web 2.0?
Become a member
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
TECHNOLOGIES
ANSWERS
LEARN
NEWS
BLOGS
VIDEOS
INTERVIEW PREP
BOOKS
EVENTS
Training
Live
JOBS
MORE
CAREER
MEMBERS
List of processes running on Remote/Local Computer using C#
Shweta Lodha
Feb 08, 2014
24.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#