sc 使用

sc config RpcSs start= auto 注意等号后面后空格

sc create命令行添加/创建/修改服务
添加服务:
sc create BITS binpath= "C:\WINDOWS\system32\svchost.exe -k netsvcs" type= share start= auto displayname= "Background Intelligent Transfer Service" depend= RpcSs/EventSystem

原文地址:https://www.cnblogs.com/dongzhiquan/p/1994943.html