How to uninstall a Windows Service when there is no executable for it left on the system?

前端 未结 7 2029
陌清茗
陌清茗 2021-01-29 18:14

How do I uninstall a Windows Service when there is no executable for it left on the system? I can not run installutil -u since there is not executable left on the s

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-29 18:33

    I'd use PowerShell for this

    Remove-Service -Name "TestService"
    

    https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/remove-service

提交回复
热议问题