Solved

Delete a Service when there is no exe

Posted on 2016-09-28
6
28 Views
Last Modified: 2016-10-19
I have to delete a service that is not deleting when I use InstallUtil /u. I need another way to delete the service from the system.
0
Comment
Question by:folsomPM
  • 2
6 Comments
 
LVL 20

Expert Comment

by:n2fc
ID: 41820887
1) Run Microsoft Management Console (mmc.exe)
2) Select Services
3) Find the service you no longer need
4) Right-click & select Properties
5) Stop it, if running
6) Change startup type to DISABLED
1
 
LVL 26

Accepted Solution

by:
Dr. Klahn earned 250 total points (awarded by participants)
ID: 41820899
n2fc has got the right of it.  So far as I know, the only way to permanently delete a service is less than safe:

  • Use Autoruns or msconfig to remove its startup run entry
  • Edit the Registry.  Since Services appears in every control set, it's easy to overlook occurrences.
0
 
LVL 69

Assisted Solution

by:Qlemo
Qlemo earned 250 total points (awarded by participants)
ID: 41821209
You can use the sc utility to remove a service. You'll need to know the internal service name. not the display name:
sc stop YourService
sc delete YourService

Open in new window

1
 
LVL 69

Expert Comment

by:Qlemo
ID: 41843392
The question isn't about disabling a service, but removing it, so the first comment does not apply.

My comment is correct and a solution.

Dr. Klahn's comment is correct in most parts: msconfig does not remove, but move the service entries to a different registry path. Same for AutoRuns if you uncheck the service (instead of removing). Superficially that is "the same" as removing the service, as it does not appear in the service manager anymore.
AutoRuns indeed allows to remove the service permanently, so this is an answer.

The registry edit is a valid solution, too, but you only need (and should) care about CurrentControlSet and leave the other ControlSetXXX keys as-is.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question