sodcalculator

10 Tech How-To

Fix Service Registration Missing or Corrupt in Windows 10

Guide 10-59188 · Updated · Step by step

When Windows 10 fails to start a service, shows an error like “The service database is locked” or “The specified service does not exist as an installed service,” the service registration in the registry is often missing or corrupted. This guide walks you through rebuilding the service entries, restoring default permissions, and using built-in tools to repair the registration so your services run again.

What You’ll Need

  • Administrator account on the Windows 10 PC
  • Windows 10 installation media (USB or DVD) – only needed if the registry repair fails
  • Backup of the registry (optional but recommended)

Step-by-Step

  1. Boot into Safe Mode. Restart your PC, and as it boots, press the power button three times to trigger Automatic Repair. Alternatively, hold Shift while clicking Restart. Go to Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 for Safe Mode. Safe Mode loads only essential services, reducing interference.
  2. Open an elevated Command Prompt. In Safe Mode, press Windows key, type “cmd,” right-click “Command Prompt,” and select “Run as administrator.”
  3. Check the service’s registry entry. Type reg query HKLM\SYSTEM\CurrentControlSet\Services\[ServiceName] (replace [ServiceName] with the actual service name, e.g., Spooler). If you get “ERROR: The system was unable to find the specified registry key or value,” the entry is missing.
  4. Recreate a missing service entry. If the entry is missing, you can often restore it by running the service’s own executable with the /regserver switch. For example, for the Print Spooler, navigate to C:\Windows\System32\spoolsv.exe and run spoolsv.exe /regserver in the Command Prompt. For other services, find the executable path in the service’s documentation or in the “ImagePath” of a similar service.
  5. If the entry exists but is corrupted, delete and recreate it. First, note the service’s start type (e.g., 2 = Automatic, 3 = Manual, 4 = Disabled). Then type sc delete [ServiceName] to remove the corrupted entry. After that, use sc create [ServiceName] binPath= "C:\path\to\service.exe" start= auto to recreate it. Replace the path and start type as needed.
  6. Restore default service permissions. Sometimes the registry key exists but its permissions are wrong. Right-click the service key in Registry Editor (regedit), select Permissions, and ensure SYSTEM and Administrators have Full Control. If they don’t, click Advanced, change owner to Administrators, then grant Full Control.
  7. Use System File Checker (SFC). In the same Command Prompt, type sfc /scannow and press Enter. This scans and repairs protected system files, including service-related DLLs. Wait for it to finish (may take 15-20 minutes).
  8. Run DISM to repair the system image. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. This fixes underlying corruption that SFC might miss. It requires internet access.
  9. Reboot normally. After SFC and DISM complete, restart your PC and check if the service starts. Use services.msc to see the service status.
  10. If the service still fails, use a restore point. If you have a system restore point from before the issue, boot into Safe Mode, open System Restore (rstrui.exe), and choose a restore point. This reverts registry changes.
  11. Repair install as a last resort. If nothing works, boot from Windows 10 installation media, choose “Repair your computer” > “Troubleshoot” > “Reset this PC.” Choose “Keep my files” to reinstall Windows while preserving personal data. This rebuilds the entire service registry.

Common Mistakes

  • Typing the service name wrong. Service names are case-sensitive in commands. Use the exact name from the service’s properties (e.g., “Spooler” not “spooler”).
  • Deleting the wrong registry key. Always back up the key before deleting. Export it via regedit first.
  • Using the wrong binPath. In sc create, the binPath must be the full path to the executable, including quotes if it contains spaces. Incorrect paths cause the service to fail immediately.
  • Skipping DISM. SFC often fails if the system image is corrupt. Always run DISM after SFC.
  • Not running as administrator. Commands like sc delete require elevated privileges. If you get “Access is denied,” you are not in an elevated prompt.

Tips

  • Export the entire Services key. Before making changes, open regedit, go to HKLM\SYSTEM\CurrentControlSet\Services, right-click it, and Export. Save the .reg file to a USB drive.
  • Use the Services snap-in to verify. After recreating a service, open services.msc, find the service, and check its “Path to executable” matches the binPath you set.
  • Check for third-party security software. Some antivirus or firewall tools can block service registration. Temporarily disable them during the repair.
  • Keep a list of default service settings. For standard Windows services, you can find the default ImagePath and start type on Microsoft’s documentation or reliable tech sites.
  • Use the “Services” tab in System Configuration. If a service won’t start, use msconfig to disable it temporarily and see if it interferes with others.

Troubleshooting

If the steps above don’t resolve the issue:

  • Error 1058 (service disabled). Check the service’s start type. Set it to Automatic or Manual via services.msc or sc config [ServiceName] start= auto.
  • Error 1079 (logon failure). The service’s account may be wrong. Open services.msc, go to the service’s Properties, Log On tab, and set the appropriate account (e.g., Local System).
  • Error 2 (file not found). The binPath points to a missing file. Verify the executable exists. Reinstall the associated program if needed.
  • Registry key cannot be deleted. Take ownership of the key first. Right-click the key, Permissions, Advanced, Change owner to Administrators, then delete.
  • Safe Mode not available. Use the installation media to boot into Recovery Environment and run Command Prompt from there.
  • If the service is a third-party one. Reinstall the software that provides the service. Often, the installer recreates the registry entry correctly.

Frequently Asked Questions

What causes service registration to become missing or corrupt?

Common causes include incomplete software uninstalls, malware, improper shutdowns, or failed Windows updates that interrupt registry writes.

Can I manually add a service to the registry?

Yes, but it’s safer to use sc create or the software’s installer. Manually editing the registry requires exact keys and values; a mistake can break the service further.

Will this fix affect my personal files?

No. The steps only modify service registry entries and system files. Your documents, photos, and other personal data remain untouched.

How long does the repair take?

SFC and DISM can take 20-40 minutes each. The registry edits take only a few minutes. The entire process could take about an hour.

Do I need a Windows installation disc?

Only for the repair install step. Most users can fix the issue without it, but if the registry is severely corrupted, you may need it.

Is there a way to prevent this from happening again?

Regularly create restore points, keep your system updated, and avoid forcefully shutting down your PC. Also, uninstall software using its official uninstaller.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →