Using SC to install a windows service and then set recovery properties June 4, 2023 by Tarik This syntax seems to work: sc failure MyService command= "\"c:\program files\myservice\myservice.exe\""