mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 06:15:22 +02:00
sc: add page (#10431)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
e1dc79df27
commit
8e15826d11
1 changed files with 20 additions and 0 deletions
20
pages/windows/sc.md
Normal file
20
pages/windows/sc.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# sc
|
||||
|
||||
> Communicate with the Service Control Manager and services.
|
||||
> More information: <https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sc-query>.
|
||||
|
||||
- Show the status of a service:
|
||||
|
||||
`sc queryex {{service_name}}`
|
||||
|
||||
- Start a service asynchronously:
|
||||
|
||||
`sc start {{service_name}}`
|
||||
|
||||
- Stop a service asynchronously:
|
||||
|
||||
`sc stop {{service_name}}`
|
||||
|
||||
- Set the type of a service:
|
||||
|
||||
`sc config {{service_name}} type= {{service_type}}`
|
Loading…
Add table
Reference in a new issue