Recognize Service Start and End

Hi,

I’am looking for a method or maybe funtion to recognize if a specific service has been started or ended. I’am in need of that to get the Services runtime. I’am busy of adding a block of code to every Service I want to monitor.

Already looked through the EventHandlers, but only found Session Start Session End.

Anyone can help on this?

Thanks in advance.

refers to service audit properties

Thanks for the hint. Already saw Auditing Events. But there’s one problem. I need to enable auditing on every service.

ATM I don’t know which service needs to have auditing enabled…

But I’ll give it a try, will test and post the result.