How to find windows service last start time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dotpranay
    New Member
    • Apr 2007
    • 9

    How to find windows service last start time?

    Hi, I am working on a C# based monitoring application mostly using WMI to do the monitoring.

    I have a requirement of finding the last start time of a windows service i.e., the exact time when the windows service was started.

    Upon further investigation, i found that i can get the windows process details related to a particular windows service. But, still couldn't figure out how to find the last start time..

    Please help me on this..... Thnx in advance guys.
  • dotpranay
    New Member
    • Apr 2007
    • 9

    #2
    Found out the answer... adding the link below for reference

    Is there a way to get the date/time that a service last started in C#? I'm using this code now to check the status of services: ServiceController sc = new ServiceController(serviceName); // chec...

    Comment

    Working...