Windows Service Error 2, "The system cannot find the file specified" when starting a service

Error 2 when starting a service means the executable file named in the service's binary path is not where Windows expects it. The file was deleted, moved, quarantined, or the path is wrong.

The fix, in order

  1. Check the binary path. Run sc qc followed by the service name in an admin Command Prompt and read the BINARY_PATH_NAME line.
  2. Check whether the file exists at that exact path. If it is missing, the service cannot start until it is restored.
  3. Check your antivirus quarantine. Security software sometimes removes or isolates a service executable after an update. Restoring it from quarantine is safe only if you trust the file and the vendor.
  4. Reinstall the program that provides the service. A clean install puts the executable back at the path the service expects.
  5. Check the drive letter. If the service path points at a drive that changed letter, or an external drive that is no longer attached, the file is effectively missing. Fix the drive letter or reinstall the program.
  6. Run sfc /scannow in an admin Command Prompt if the missing file belongs to Windows, since System File Checker can restore protected system files.

If it still happens

If the file exists but the error continues, check the path for a typo, an extra space, or a missing quote. A path that looks right but has a hidden character fails the same way as a missing file.

Common questions

How do I find which file the service is missing? Run sc qc and the service name in an admin Command Prompt. The BINARY_PATH_NAME line shows the exact file Windows tried to open, and you can check whether it exists at that path.

Can antivirus cause service error 2? Yes. If security software quarantines or deletes the service executable, Windows reports error 2 the next time the service starts. Check the quarantine list before reinstalling.

Related errors

Windows Service Error 3 · Windows Service Error 87 · Windows Update Error 0x80070002

Was this helpful?