locked
sc config delayed-auto never work RRS feed

  • Question

  • I was trying to create a bat file changing start up services... sc config  - auto / disabled / Demand will work, but sc config delayed-auto never work, even though people just keep saying delayed-auto  will work! What's worse, when running the bat file, the command windows shows hints indicating auto or disabled or Demand or delayed-auto, and that was what I am using, so why delayed-auto is not working? It always just set it to auto instead of delayed-auto...
    Sunday, November 20, 2011 10:21 AM

Answers

  • Does the issue occur with all services? Some service cannot be set to delayed auto start. You will see errors when you manually set the service to delayed auto start in the services.msc.

    Additionally, the command line should be:

    sc config ServiceName start= delayed-auto

    There is a space after the equal sign.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    • Marked as answer by Arthur Xie Thursday, December 1, 2011 8:46 AM
    Tuesday, November 22, 2011 7:19 AM

All replies

  • Does the issue occur with all services? Some service cannot be set to delayed auto start. You will see errors when you manually set the service to delayed auto start in the services.msc.

    Additionally, the command line should be:

    sc config ServiceName start= delayed-auto

    There is a space after the equal sign.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
    • Marked as answer by Arthur Xie Thursday, December 1, 2011 8:46 AM
    Tuesday, November 22, 2011 7:19 AM
  • That's wrong. None of the services will be able to be set as auto-delay through a bat command. It can only be set as auto through bat command, or do it one-by-one mannually if you have to set it as auto-delay (and there's no way for some of the services to be set as auto-delay)
    Thursday, May 24, 2012 1:57 AM