Windows Service Operations

Create windows service
sc create <service_name> binpath= "<path_to_binary_executable>" [option1] [option2] [optionN]

Ex:
sc create Test binPath= "C:\Program Files\Aspera\Enterprise Server\bin\Debug\test.exe" DisplayName= "Test Central" start= auto

Delete windows service
sc delete <service_name>

Query windows service configuration:
sc qc <service_name>

Change configuration
sc config<service_name> binpath= “<path_to_binary_executable>”

Chek service status
sc query <service_name>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s