mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:02:08 +02:00

* 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>
546 B
546 B
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\to\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}}