mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 21:58:47 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
25
tldr/windows/sc
Normal file
25
tldr/windows/sc
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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.exe query {{service_name}}`
|
||||
|
||||
- Start a service asynchronously:
|
||||
|
||||
`sc.exe create {{service_name}} binpath= {{path o\service_binary_file}}`
|
||||
|
||||
- Stop a service asynchronously:
|
||||
|
||||
`sc.exe delete {{service_name}}`
|
||||
|
||||
- Set the type of a service:
|
||||
|
||||
`sc.exe config {{service_name}} type= {{service_type}}`
|
||||
Reference in New Issue
Block a user