If you illegally uninstall a software, the program may have residual Win32 services in the system, and Windows does not provide the ability to uninstall the service in MMC. In .NET, you can install / uninstall the service through installutil.exe, in fact, for non-.NET's Windows service, Microsoft provides a tool to manage services, you can delete services, there is a sc.exe in WinXP's system32 directory. Tools, this tool is included in the resource kit of Windows 2000, this tool has a strong function of management services! Run SC.exe in CMD can see the following:
C: / windows / system32> sc.exedescription: sc.exed Line Program Used for Communicating with the NT Service Controller and services.usage: SC
The Option
The Following Commands Don't Require a Service Name: SC
Would you like to see help for the QUERY and QUERYEX commands [y | n]:? YQUERY and QUERYEX OPTIONS: If the query command is followed by a service name, the status for that service is returned Further options do not apply in this. case. If the query command is followed by nothing or one of the options listed below, the services are enumerated. type = Type of services to enumerate (driver, service, all) (default = service) state = State of services to enumerate ( inactive, all) (default = active) bufsize = The size (in bytes) of the enumeration buffer (default = 4096) ri = The resume index number at which to begin the enumeration (default = 0) group = Service group to enumerate ( Default = all groups) Syntax Examplessc Query - Enumerates Status for Active Services & DriversSC Query Messenger - Displays Status for the Messenger Servicesc Queryex Messenger - Displays extended status for the messenger servicesc query type = driver - Enumerates only active driverssc query type = service - Enumerates only Win32 servicessc query state = all - Enumerates all services & driverssc query bufsize = 50 - Enumerates with a 50 byte buffer.sc query ri = 14 - enumerates with resume index = 14sc queryex group = "" - enumerates active services not in a groupsc query type = service type = interact - enumerates all interactive servicessc query type = driver group = NDIS - enumerates all NDIS drivers