sc
Windows CMD · System · available in the simulator
What it does
Manages Windows services.
Syntax
sc [\\servidor] comando nombre_servicio [opciones]
Options and parameters
querySubcommand: displays the status of a service or all services.
sc query spoolerstart NOMBREstarts a service
stop NOMBREstops a service
configSubcommand: changes the service configuration.
sc config spooler start= autodeleteSubcommand: deletes a service from the registry.
startSubcommand: starts a service.
sc start spoolerstopSubcommand: stops a service.
pauseSubcommand: pauses a service.
continueSubcommand: resumes a paused service.
createSubcommand: creates a new service.
qcSubcommand: displays the service configuration.
Usage examples
sc querysc start spoolersc stop spoolersc config spooler start= autosc query type= servicesc query spooler
Notes and common mistakes
- In sc config, parameters require a space after the equal sign: start= auto.