From 8e15826d1189951b219527c02efa576690b1702b Mon Sep 17 00:00:00 2001 From: Aleksandr Kostikov Date: Fri, 30 Jun 2023 05:49:06 -0700 Subject: [PATCH] sc: add page (#10431) Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/windows/sc.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/windows/sc.md diff --git a/pages/windows/sc.md b/pages/windows/sc.md new file mode 100644 index 0000000000..29d1181890 --- /dev/null +++ b/pages/windows/sc.md @@ -0,0 +1,20 @@ +# sc + +> Communicate with the Service Control Manager and services. +> More information: . + +- 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}}`