Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

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
0
GurcanK
Asked:
GurcanK
  • 3
  • 2
2 Solutions
 
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now