Sub topic 9
Services that fail to start and slow startup
This chapter assumes you can open Task Manager, Event Viewer and an elevated Command Prompt or PowerShell window. It also assumes you know the difference between a program a user starts and a background process Windows starts for them.
What a service is
A service is a background program that Windows can start without a signed-in user. Examples are the Print Spooler, Windows Update and the DHCP Client. Each service has a startup type:
| Startup type | Behavior |
|---|---|
| Automatic | Starts at boot |
| Automatic (Delayed Start) | Starts shortly after boot finishes, to speed up sign-in |
| Manual | Starts only when something requests it |
| Disabled | Cannot start until the type is changed |
A service also runs under an account and may depend on other services. If a dependency is stopped or disabled, the dependent service fails too.
Finding services that failed to start
Start with evidence. At boot, Windows often shows a message such as "A service failed to start." Event Viewer records the details under Windows Logs > System, from the Service Control Manager source. Event ID 7000 and 7001 mean a service or one of its dependencies failed. Event ID 7034 means a service ended unexpectedly. Event ID 7045 means a new service was installed, which is worth checking if the problem began after a software install.
To list automatic services that are not running, use PowerShell:
Get-Service | Where-Object { $_.StartType -eq 'Automatic' -and $_.Status -ne 'Running' } | Select-Object Name, DisplayName, StatusSome automatic services stop on purpose after finishing their work, so a stopped entry is a lead, not proof of a fault.
Common causes and fixes
- The service is disabled or set to Manual. Open services.msc, double-click the service and change the startup type.
- A dependency is not running. On the Dependencies tab, find what the service needs and start that first.
- The logon account or its password changed. On the Log On tab, correct the account. This is common after a password change on a service account.
- Corrupt files or a bad update. Run sfc and DISM, or use System Restore.
- Software conflict. Uninstall or repair the program that owns the service.
You can also start a service from an elevated prompt with net start spooler, or restart it with Restart-Service Spooler in PowerShell.
Diagnosing slow startup
Slow startup usually comes from too many things launching at sign-in. Use this order:
- Open Task Manager and select the Startup apps tab (Startup in Windows 10).
- Sort by Startup impact. Disable high-impact items the user does not need at sign-in.
- Check Services in msconfig or services.msc for third-party services you can set to Manual or Delayed Start.
- Look at Resource Monitor for disk at 100 percent during boot. A failing drive or a hard disk drive (HDD) under load can cause this.
- Scan for malware if unknown entries appear.
Disabling a startup item does not uninstall the program. It is reversible, which makes it the least destructive fix.
Exercise
A technician finds that a service set to Automatic does not start after boot. Event Viewer shows event 7001, which says a dependency service failed. What should the technician check first?
Show answer
Open the service's Dependencies tab in services.msc, find the service it depends on, and check that this service is not disabled and can start. Starting the dependency first, then the original service, usually resolves the error.