sc delete 服务名称
sc create 服务名称 binpath="服务EXE文件所在的目录"
Windows服务的删除与添加
原文:https://www.cnblogs.com/GetcharZp/p/11628733.html