windowsserviceswontstartautomatically
Fix: Windows Services Won't Start Automatically
Summary: How to increase the automatic startup time for Windows Services
Date: Around 2013
Refactor: 26 January 2025: Checked links and formatting. Cleaned up.
After rebooting a Windows Server some services that should start automatically are not automatically started. Looking in the event viewer you'll see errors like this:
The SQL Server (MSSQLSERVER) service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.
or
A timeout was reached (30000 milliseconds) while waiting for the SQL Server (MSSQLSERVER) service to connect.
This error can occur when the system is too busy to start the service within the 30 seconds range. Starting the services is stopped and not retried. This can be solved by configuring a higher timeout:
- Click Start → click Run → type regedit and click OK.
- Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
- Right-click Control → select New → DWORD Value.
- In the New Value #1 box, type ServicesPipeTimeout, and press ENTER.
- Right-click ServicesPipeTimeout → Modify.
- Click Decimal, type the number of milliseconds that you want to wait until the service times out, and then click OK.
- For example, to wait 60 seconds before the service times out, type 60000.
- Quit Registry Editor, and then restart the computer.
Note: Rebooting the computer is not strictly necessary, this is a setting that's only valid for reboots so it will be eligible for the next reboot anyway.
windowsserviceswontstartautomatically.txt · Last modified: by 127.0.0.1