Skip to content

Troubleshoot a Windows Service That Starts and Then Stops

Admin
November 19, 2026
5 min read
Intermediate
💻 Target OS: Windows 11

Before you begin

  • Applies to:A service on Windows 11 that stops shortly after starting.
  • Where to start:Open PowerShell 7 or later on the affected PC. Start with read-only status and log checks.
  • What you need:Get the exact short service name from Services and check the vendor’s expected behavior. Starting or changing a service may require administrator rights.
Guide tools
Guide tools
0/0 Steps (0%)

Troubleshooting Steps

01

Capture service state and exit codes

Start here

Where to click

  1. Open Start, search for Services, and open it.
  2. Open the affected service’s Properties and copy the Service name from the General tab.

What to look for · Replace the example Spooler name in the command with your service name. ExitCode reports the Windows error. ServiceSpecificExitCode is relevant when ExitCode is 1066. A stopped state or zero exit code alone cannot establish whether the service can do its job.

Terminal window
Get-CimInstance -ClassName Win32_Service -Filter "Name='Spooler'" |
Select-Object Name, State, StartMode, ExitCode, ServiceSpecificExitCode
02

Check the service’s trigger, dependencies, and logs

Narrow the cause

Where to click

  1. In the service’s Properties, select Dependencies and review the services listed.
  2. Open Event Viewer → Windows Logs → System and look for Service Control Manager events at the time it stopped.
  3. Under Windows Logs, select Application and look for a corresponding error. Check the vendor log if the service keeps its own logs.

What to look for · Compare the events and trigger information with the service’s expected behavior. Some services start on demand and stop when idle. Use the actual service name in the command below.

Terminal window
sc.exe qtriggerinfo Spooler
03

Correct the identified issue and test the workload

Verify

Use the evidence to address the specific dependency, configuration, or service account error with the owner. After any approved change, run the supported workload and check the result and fresh logs. If the service is designed to run on demand, verify it responds to that trigger and that the client task completes.

Reference

Comments