Friday, August 23, 2013

.::: How to Delete a Windows Service On Windows :::.

If you are a fan of tweaking your system and disabling services, you might find that over time your Windows Services list becomes huge and unwieldy with a large number of services in the list that will never be enabled.

Instead of just disabling a service, you can alternatively completely delete the service. This technique can be especially helpful if you’ve installed some piece of software that doesn’t uninstall correctly, and leaves an item in the service list.

Important Note: Once you delete a service, it’s gone, and it’s going to be a pain to add it back. Use with caution.

Deleting a Service

The first thing you’ll need to do is identify the name of the service, so open up Services through the start menu or control panel, and then find the service in the list that you want to delete.


You’ll want to open up the properties by double-clicking on the service name, and then highlight the “Service name” value and copy it to the clipboard. This is what we’ll need to disable it.

You’ll need to open up a command prompt, and if you are using Windows 7 or Vista you’ll need to right-click the command prompt and choose Run as Administrator. We’ll use the sc command to actually do the work.

The syntax used to delete a service is this:

    sc delete ServiceName

If your service name has spaces in it, you’ll need to wrap the service name in quotes, like this:

    sc delete “vncserver”
  
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\teguh.triharto>sc delete vncserver
[SC] DeleteService SUCCESS

C:\Users\teguh.triharto>

Note that I’m not recommending deleting this particular service, it’s just an example.

Now if you use the F5 key to refresh your Services list, you’ll see that the service is gone.

I’ve found that using this technique (carefully) can make your Services list a lot more useful, since you don’t have to weed through dozens of items you will never have enabled.

Note: You should think long and hard before deleting a service, because it’s very difficult to get them back once they are gone.

Alternative

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(vncserver example). You can look at the keys to know what files the service was using and delete them as well (if necessary).

 .::: How to Delete a Windows Service in Windows Server 2008, Windows Server 2012, Windows 7, Windows 8, Vista or XP :::.

No comments:

Post a Comment

Popular Posts