Programmatically Changing Service Attributes.

Dear Experts,

We have written a service-based VB.Net program that installs a service to Windows Services. However, while installing the service we want that the program changes Recovery attributes of the service other then default provided by Windows.

Such as:
First Failure: Restart Service
Second Failure: Restart Service
Subsequent Failures: Restart the Service.
Reset Fail Count After: 0 Days
Restart Service After: 0 Minutes

Thanks in advance.

GK
GurcanKAsked:
Who is Participating?
 
MushqCommented:
0
 
daveamourCommented:
0
 
daveamourCommented:
Ooops sorry Mushq - your post wasn't there when I posted!
0
 
MushqCommented:
Hi daveamour I am very happy to see that your answer has been graded too. :)

Regards,
Mushi
0
 
daveamourCommented:
Cheers :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.