IT:AD:SC

Summary

The REsource Kit SC.exe is the command line tool for managing Windows Services

Process

//List services:
sc query

//Start a service:
sc start <service name>

//Stop a service:
sc stop <service name>


//Example of configuring a service:
sc config "%SERVICE_NAME%" type= own type= interact


//Marks the service for removal:
sc [<ServerName>] delete [<ServiceName>]

Note that you can also do that with the NET command.