Using SC to install a windows service and then set recovery properties

后端 未结 1 887
暗喜
暗喜 2020-12-25 10:38

I want to set the Recovery Options on a Windows Service I\'m installing on a Windows Server 2003. I know this is possible to do manually, but I want to set the Recovery conf

相关标签:
1条回答
  • 2020-12-25 11:01

    This syntax seems to work:

    sc failure MyService command= "\"c:\program files\myservice\myservice.exe\""
    
    0 讨论(0)
提交回复
热议问题