Shahed's blog

Sharing my thoughts and work

  Home  |   Contact  |   Syndication    |   Login
  18 Posts | 0 Stories | 102 Comments | 10 Trackbacks

News

Archives

Post Categories

 

Recently, I was trying to delete a windows service. Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).

However, I installed some beta products and a service created by one of the applications was not removed automatically. Its very easy to remove a service from registry if you know the right path. Here is how I did that:

1. Run Regedit or Regedt32

2. Find the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"

3. Look for the service there and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).

alternatively, you can also use command prompt and delete a service using following command:

sc delete < SERVICE name>

or to create, simply type
sc create <SERVICE name>

Update: 
If you have space in the file path you need to use quotation marks ("). For example: 
sc create "MySQL" binpath= "C:\Archivos de programa\MySQL\MySQL Server 5.1\bin\mysqld.exe"

Thanks to Maya.

NOTE: You may have to reboot the system to get the list updated in service manager.

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted on Friday, October 13, 2006 4:54 PM

Feedback

# re: How to delete a windows service 10/16/2006 5:38 PM Carl
Or even:

sc delete <service name>

;o)

# re: How to delete a windows service 10/20/2006 11:12 PM Shahed
Hi Carl,

Thanks, fixed the typo. :)

# re: How to restore a deleted a windows service 10/31/2008 12:31 PM ravi
How can we restore a service that is deleted from cmd prompt withthe cmd sc delete <servicename> ????????

# re: How to delete a windows service 10/31/2008 4:56 PM shahed
Hi Ravi,

You can create a service in following way:

sc create "<service name>" binpath= "<file path>"

please note that you may need to put a single space right after the binpath=

# re: How to delete a windows service 7/9/2009 12:00 AM yusuf
Great No I can delete the ORACLE services .
thanks a lot

# re: How to delete a windows service 8/4/2009 10:30 AM James
In my experience, this is the wrong format...correct format is:
sc delete "service name" (with quotes and no brackets,etc)

# re: How to delete a windows service 8/19/2009 4:55 AM Anil
Very useful...i resolved my problem because of this

# re: How to delete a windows service 10/13/2009 5:53 AM Russ
Thanks a lot - I'd deleted the registry keys but didn't know you had to reboot before it would disappear from the services snap in, the joys of Windows eh?

# re: How to delete a windows service 12/1/2009 4:07 PM Jim
actually, just 'refresh' services manager, don't need to reboot.

# re: How to delete a windows service 12/17/2009 12:30 PM Erick Acosta
In fact, you can delete windows services without the brackets nor the quotes. The use of brackets <> is a standar used to denote a parameter in the syntax of commands.

# re: How to delete a windows service 2/4/2010 7:11 PM Maya
This is the correct sintaxis
sc create "MySQL" binpath= "C:\Archivos de program
a\MySQL\MySQL Server 5.1\bin\mysqld.exe"


[SC] CreateService SUCCESS

:-D


# re: How to delete a windows service 2/4/2010 7:35 PM Shahed
Hi Maya,

yes, you are right. If you have space in the file path you need to use quotation marks (").

Thanks,
Shahed

# re: How to delete a windows service 4/12/2010 1:58 PM Erhun
Thanks for your help, its currently worked, hi to all indians

# re: How to delete a windows service 5/4/2010 5:20 PM fred
I would like to say Hi to all the indians too

# re: How to delete a windows service 6/17/2010 2:37 AM mihai
Hmmm ... the reboot is really needed in some cases?! The deleted service doesn't go away without?!

# re: How to delete a windows service 7/7/2010 8:29 PM Mike Smith
That's great thanks. Helped me get over an old McAfee service that wouldn't behave.

# re: How to delete a windows service 8/15/2010 11:59 PM Mahen
Thanks :)

# re: How to delete a windows service 9/20/2010 12:57 AM Sarika
It works, thanks

# re: How to delete a windows service 10/6/2010 4:08 AM pintu
service deleted from system using regedit ( delete the "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services" )

But it link not remove from system

Plz help

# re: How to delete a windows service 10/6/2010 8:53 AM Shahed
did you mean, its not removing from the "administrative tools->services" list?

Sometimes, you may need to restart the system. If its still there, there "sc delete <SERVICE name>"

# re: How to delete a windows service 12/12/2010 7:49 PM ugg boot sale
Humm I wonder if you can network Unreal Dreamcast over a or a direct dial up null connection?

# re: How to delete a windows service 12/31/2010 3:46 AM Gowsalya
Thanks a lot !! It s really helpful..

# re: How to delete a windows service 2/9/2011 1:30 PM allen white
Thanks, I got this sorted evetually with your solution and another solution on techieshelp.

http://www.techieshelp.com/remove-a-windows-service-via-registry/

# re: How to delete a windows service 6/3/2011 1:24 AM Isaiah
Good work. The command prompt solution dint work for me but Regedit solution did!!!
Thanks! :-)

# re: How to delete a windows service 10/29/2011 2:55 PM Randomer
I have a similar problem to what you had. I tried to uninstall it the way you did and I thought I managed to delete it, but I found it again later in services :/.

I tried your second way but CMD says that it does not exist :(. I restarted my computer after the first delete btw, and I can't find it in the registry editor anymore. Any help would be greatly appreciated :).

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: