win2003 server to delete the service method

  • 2020-05-06 12:05:40
  • OfStack

There are generally two ways to delete a service:

Method 1: use sc.exe the Windows command
starts -- runs -- cmd.exe, and then enters sc to see it. The solution is simple:
sc delete "service name" (if there is a space in the service name, it needs to be quoted before and after)
As for the above: sc delete mysql

option 2: edit
directly from the registry
opens the registry editor and finds the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

The service typically displays a key here with the same name, and simply deletes the associated key.


special case

1. If the service displays rundll32.exe and the file is in the system32 directory, the rundll32.exe file cannot be deleted. It is a file on the Windows system. At this point, simply clear the relevant services 2, if a service is deleted and automatically set up, there is a process in the background monitoring, protection. You either need to kill the process in the process manager or press F8 to delete it in safe mode after starting.

Related articles: