Quick Delete System Services Command SC Delete ServiceName
To remove a service named ServiceName, you can use the XP Self-Service Management tool (SCP) sc.exe command
You can delete a specified service by using the following command:
SC Delete ServiceName
The essence of these commands is to delete the ServiceName branch under Hkey_local_machine/system/currentcontrolset/services.
So you can also use the reg command to remove a service named ServiceName:
Reg delete Hklm/system/currentcontrolset/services/servicename
After installing some third-party software in Windows, you can register some services in the system, and the service will be able to see after removing the software.
You can run the SC command to remove them
Format: SC Delete "service name" use double quotes if the service name contains spaces
SC Delete
Deletes a service subkey from the registry. If the service is running or if another process has an open handle to the service, mark the service for deletion. Grammar
SC [ServerName] Delete [ServiceName] parameters
ServerName Specifies the name of the remote server on which the service resides. The name must use the UNC format ("//MyServer"). To run SC.exe on this computer, ignore this parameter. SERVICENAME Specifies the name of the service returned by the Getkeyname operation. /? Display Help at the command prompt. Note Use Add or Remove Programs to remove DHCP, DNS, or any other built-in operating system service. Add or Remove Programs not only deletes the registry subkey for the service, but it also unloads the service and deletes all its shortcuts. Example
The following example shows how to use the sc delete command:
SC Delete Newserv