Solved

Delete a Service when there is no exe

Posted on 2016-09-28
6
23 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 19

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 23

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 68

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 68

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In my previous Experts Exchange Articles (http://www.experts-exchange.com/ARTH_1864316.html?arthOrderBy=3&arthSort=1#arth), most have featured Basic and Intermediate VMware Topics.  As a Virtualisation Consultant, we implement many different virtual…
The reason that corporations and businesses use Windows servers is because it supports custom modifications to adapt to the business and what it needs. Most individual users won’t need such powerful options. Here I’ll explain how you can enable Wind…
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now