Service Control Command
Filed under:
Deployment Solution, Software Delivery Solution, Notification Server
3rd Party Products, Automation, Basics, Scripting, Command Line
Submitted by CondorMan on 18 June, 2008 - 10:47.
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 /?"
(20 votes)
- Login or register to post comments
- 676 reads
- Printer-friendly version















