Service Control Command
Updated: 18 Jun 2008
Have you ever wanted to start, stop, delete, create, or configure a service in your batch script? The "SC" command will allow you to do this and more.
Here are a few examples of how you can use this command:
| Start a service | sc start ServiceName |
| Stop a service | sc stop ServiceName |
| Delete a service | sc delete ServiceName |
| Create a service | sc create ServiceName binPath="C:\Program Files\InstallDir\Service.exe" start=auto |
| Configure a service | sc config ServiceName <options> |
For more information about the settings you can make when creating and configuring services, go to a command prompt and type "sc create /?" and "sc config /?"

The Endpoint Management Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management community. Any authenticated Connect member can contribute to this blog.