views:

28

answers:

1

Hi,

I need to monitor and control a set of Windows Services that are running either on a local machine or remotely. I've heard of WMI and ADSI and the first one seems to do what I want. Before going deep into it, I just want to check if I'm going in the right direction?

Thank you

EDIT Additional information: I also need to inspect SQL jobs and IIS instances so I think WMI is what I need.

+1  A: 

You might want to look at the ServiceController class.

http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.aspx

ho1
Interesting. However, I finally also need to inspect other elements...(see my Edit). But thanks for the info!
Amokrane