Skip navigation

How can I configure a services start-up type from the command line?

A. You typically use the Services GUI in Windows to configure a services start-up type, but you can also use the SC command to set the start-up type from the command line:

sc config <service name> start=<mode>

For example,

sc config tlntsvr start=auto

automatically starts the tlntsvr service when you boot the system.

The start options are

  • auto--a service automatically started at boot time, even if no user logs on
  • boot--a device driver loaded by the boot loader
  • demand--a service that must be manually started (the default)
  • disabled--a service that can't be started
  • system--a service started during kernel initialization
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish