When I use
sc create "myService" binpath= “C:\Program Files\myService\myService.exe" I have no way to configure some aspects of the service. In particular the
Recovery tab seen in
services.msc (action on first failure, action on second failure, restart service after, etc).
I currently manually modify these parameters, but is there a better method?
A PowerShell command or so? What I found about PowerShell do not allow much better than