Shahed's blog

Sharing my thoughts and work

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 0 Stories | 44 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>

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

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?

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