locked
Windows Service Not Starting Automatically Windows 10 RRS feed

  • Question

  • Automatic startup no longer works with a C++ windows service that we created. Automatic startup works fine for most people. However we have 5 instances now where the customer's service was working fine and now it will not automatically start up.

    The only thing that seems to work is setting to delayed start, but this is not a good option as we would like the service to be started right away. We've also tried adding service dependency of NetLogon - which did not work.

    Also note that this was working fine for customers and at some point (windows update maybe?) it just stopped automatically starting. There are no errors in the log files, it seems that the service is not even trying to start up.

    The customers are also able to go into services and start the service manually, and it works. I am hoping for a better solution than delayed start.

    Tuesday, December 13, 2016 5:58 PM

All replies

  • Hi Megan,

    If your service StartType is set to Automatic, but the service is not running after a reboot, then either your service has a dependency on another service that is not starting correctly, or your service's own startup code is failing and ends up stopping the service.

    In general, we check the Windows Event Log for errors, but you has mentioned that there is no error in Event Viewer, it’s strange. Besides, most users don’t meet with this condition, just 5 users have problem, it indicates that the service does can auto start in Windows 10, the current problem should be related to these users’ specific configurations on computers, please check this point.

    There is a similar case talks about this situation, refer to it for a hint.

    http://superuser.com/questions/1026496/automatic-services-doesnt-start-automatically-after-windows-restart

    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Regards


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.



    Wednesday, December 14, 2016 2:26 AM
  • Hi,

    "then either your service has a dependency on another service that is not starting correctly"

    I have tried adding dependency of NetLogon but this does not work, are there other services that you would recommend adding a dependency on? This one was the most suggested as NetLogon also relies on Workstation.

    "or your service's own startup code is failing and ends up stopping the service."

    I believe that if this was true the users would not be able to start the service manually, and they are able to do so. Also the service was starting fine for about a year prior and has only stopped auto starting within the last 2 months.

    "the current problem should be related to these users’ specific configurations on computers"

    I believe this is due to a windows update, all of the users services were starting automatically and recently they have stopped auto starting. As time goes on and more people update, more and more services may stop automatically starting this could be a big problem.

    "super user link"

    I have read this previously and found that doing a delayed start is a workaround but not an actual solution as we are creating a backup service that we need to be started right away. Delayed start starts 2 minutes after the last automatic service is started which can take a very long time.

    There are also many other people having the same problem and I believe it needs to be looked at closer. I found many threads both here and on stack overflow where services are no longer starting automatically.

    Thanks,

    Megan

    Wednesday, December 14, 2016 6:03 PM
  • We are seeing a similar behavior with a service we have in our software. No error log in event log and similar situation. It was as though windows 10 was not even TRYING to start the service.

    The work around for us was disabling fast boot on afflicted systems. This seems to correct the issue completely for those systems. I am reading your post because I am searching for a permanent solution.


    Hoody Hoo!

    Tuesday, March 14, 2017 4:22 PM
  • Yes, yes, it Works!

    I've been searching for this issue forever but this option worked. Could not imagine.

    Monday, November 4, 2019 10:06 AM