sc
Communicate with the Service Control Manager and services. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/sc-query.
- Show the status of a service (no service name will list all services):
sc query
- Start a service asynchronously:
sc start
- Stop a service asynchronously:
sc stop
- Create a service:
sc create binpath=
- Delete a service:
sc delete
- Set the type of a service:
sc config type=
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
