How to delete a service in Windows Server 2003

I had trouble with an old install of AIME (films library pkg) and tried to reinstall the application service; it did not work.

We can use sc.exe in the Windows Server 2003 to control services, create services and delete services. Since some people thought they must directly modify the registry to delete a service, I would like to share how to use sc.exe to delete a service without directly modifying the registry so that decreased the possibility for system failures.

To delete a service:

Click “start“ – “run“, and then enter “cmd“ to open Microsoft Command Console.

Enter command:

sc servername delete servicename

For instance, sc dc delete myservice

(Note: In this example, dc is my Domain Controller Server name, which is not the local machine, myservice is the name of the service want to delete on the DC server.)

Below is the official help of all sc functions:

DESCRIPTION:

SC is a command line program used for communicating with the NT Service Controller and services.

USAGE:

sc

So use on libserver the command was:

sc \libserver delete AIME

http://msmvps.com/blogs/nuoyan/archive/2004/11/07/18247.aspx

    Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

    Comments

    No comments yet.

    Leave a comment

    (required)

    (required)


    *