sc Command Examples

Communicate with the Service Control Manager and services. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/sc-query.

sc.exe query {{service_name}}

sc.exe create {{service_name}} binpath= {{path\to\service_binary_file}}

sc.exe delete {{service_name}}

sc.exe config {{service_name}} type= {{service_type}}