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
Loading
paul walkerPosted Feb 15, 2010, 6:29 AM
Any ides how I can get hold of this?
Thanks again
Paul
Lalit MPosted Feb 15, 2010, 6:00 AM
http://www.geekpedia.com/tutorial225_Listing-Services-with-Csharp.html
http://www.devasp.net/net/articles/display/722.html
Lalit MPosted Feb 15, 2010, 5:56 AM
show here details