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

前端 未结 7 2108
陌清茗
陌清茗 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条回答
  •  Happy的楠姐
    2021-01-29 18:49

    found here

    I just tried on windows XP, it worked

    local computer: sc \\. delete [service-name]

      Deleting services in Windows Server 2003
    
      We can use sc.exe in the Windows Server 2003 to control services, create services and delete services. Since some people thought they must directly modify the registry to delete a service, I would like to share how to use sc.exe to delete a service without directly modifying the registry so that decreased the possibility for system failures.
    
      To delete a service: 
    
      Click “start“ - “run“, and then enter “cmd“ to open Microsoft Command Console.
    
      Enter command:
    
      sc servername delete servicename
    
      For instance, sc \\dc delete myservice
    
      (Note: In this example, dc is my Domain Controller Server name, which is not the local machine, myservice is the name of the service I want to delete on the DC server.)
    
      Below is the official help of all sc functions:
    
      DESCRIPTION:
        SC is a command line program used for communicating with the
        NT Service Controller and services. 
      USAGE:
              sc
    

提交回复
热议问题