I have a Windows service that I build on a build server and then install on multiple remote servers using Sysinternals PSExec and sc create. This was worked well to this point but I now have a need to set the recovery options for the service so the service will restart itself or the machine in the event of a failure.
In a perfect World I would be able to pass some parameters in my sc create command but it doesn't appear that easy.
Can anybody help me?
Thanks, Chris