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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
paul walker
NA
30
0
Checking Services on a Server
Feb 15 2010 5:42 AM
Hi,
Can someone help? I need to write an application that will check whether a set of services are running on a server. The application will check every 5 minutes.
I am aware of the ServiceController object that can check the status of a service, but what I want to do is check the all the services running under a specific 'Log On As', rather than hard-code the name of the service.
Does anyone know if there is an object that exposes the services as a collection so that I can write a foreach statement to check the services?
Thanks
Paul
Reply
Answers (
3
)
Printing a Windows Form to fit A4 paper
String Arrays