Solved

Delete a Service when there is no exe

Posted on 2016-09-28
6
29 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 27

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

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
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 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 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…

749 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