Solved

Delete a Service when there is no exe

Posted on 2016-09-28
6
27 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 25

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…

832 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