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

前端 未结 7 2100
陌清茗
陌清茗 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:40

    Here is the powershell script to delete a service foo

    $foo= Get-WmiObject -Class Win32_Service -Filter "Name='foo'"
    $foo.delete()
    

提交回复
热议问题