-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# sc | ||
|
||
> Comunicación con el Administrador de Control de Servicios y los servicios. | ||
> Más información: <https://learn.microsoft.com/windows-server/administration/windows-commands/sc-query>. | ||
- Muestra el estado de un servicio (al no nombrar un servicio se listan todos los servicios): | ||
|
||
`sc.exe query {{nombre_del_servicio}}` | ||
|
||
- Inicia un servicio asincrónicamente: | ||
|
||
`sc.exe create {{nombre_del_servicio}} binpath= {{ruta\al\binario_del_servicio}}` | ||
|
||
- Detiene un servicio asincrónicamente: | ||
|
||
`sc.exe delete {{nombre_del_servicio}}` | ||
|
||
- Establece el tipo de servicio: | ||
|
||
`sc.exe config {{nombre_del_servicio}} type= {{service_type}}` |