Quick Delete System Services Command SC Delete ServiceName

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.