You can create a new service on a Windows system, including Windows 8, using the
sc
command. To create a new service named "ExampleService",
the command below could be issued from a
Command Prompt:
Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Windows\system32&sc create ExampleService binpath="C:\Program Files (x86)\ExampleApp\Example.exe" [SC] CreateService SUCCESS C:\Windows\system32&
To delete the service you created, e.g., ExampleService
,
you can use the command sc delete servicename
, e.g.:
C:\Windows\system32>sc delete ExampleService [SC] DeleteService SUCCESS
Once you have created a service, you can modify it, e.g., to have it start
automatically by using services.msc
to bring up the
Windows
Services list.
C:\>services.msc
Or you can get to the services list through the Control Panel, which you can do on a Windows 8 system by selecting System and Security from the Control Panel, then select Administrative Tools, then Services. Double-click on the service you wish to modify and make any changes you wish, for instance changing the startup type to Automatic so that the service starts whenever the system boots.
References: