sc

Windows CMD · System · available in the simulator

What it does

Manages Windows services.

Syntax

sc [\\servidor] comando nombre_servicio [opciones]

Options and parameters

  • query

    Subcommand: displays the status of a service or all services.

    sc query spooler
  • start NOMBRE

    starts a service

  • stop NOMBRE

    stops a service

  • config

    Subcommand: changes the service configuration.

    sc config spooler start= auto
  • delete

    Subcommand: deletes a service from the registry.

  • start

    Subcommand: starts a service.

    sc start spooler
  • stop

    Subcommand: stops a service.

  • pause

    Subcommand: pauses a service.

  • continue

    Subcommand: resumes a paused service.

  • create

    Subcommand: creates a new service.

  • qc

    Subcommand: displays the service configuration.

Usage examples

  • sc query
  • sc start spooler
  • sc stop spooler
  • sc config spooler start= auto
  • sc query type= service
  • sc query spooler

Notes and common mistakes

  • In sc config, parameters require a space after the equal sign: start= auto.
Practise sc

Related commands