choice, net, sc, w32tm: remove locale from link; sc: update page, add alias pages (#11238)
* choice, net, sc, w32tm: remove locale from link * sc: update command syntax Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * sc-*: add alias pages Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
@@ -1,20 +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>.
|
||||
> 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 queryex {{service_name}}`
|
||||
`sc.exe query {{service_name}}`
|
||||
|
||||
- Start a service asynchronously:
|
||||
|
||||
`sc start {{service_name}}`
|
||||
`sc.exe create {{service_name}} binpath= {{path\to\service_binary_file}}`
|
||||
|
||||
- Stop a service asynchronously:
|
||||
|
||||
`sc stop {{service_name}}`
|
||||
`sc.exe delete {{service_name}}`
|
||||
|
||||
- Set the type of a service:
|
||||
|
||||
`sc config {{service_name}} type= {{service_type}}`
|
||||
`sc.exe config {{service_name}} type= {{service_type}}`
|
||||
|
Reference in New Issue
Block a user