Windows Service Error 5, "Access is denied" when starting a service

Error 5 in a service context means the account starting the service, or the account the service runs under, does not have permission to do something the startup needs. That can be the service binary, its registry keys, or the logon itself.

The fix, in order

  1. Run the Services console as an administrator. Right-click services.msc and choose "Run as administrator", then try starting the service again.
  2. Check the service account. In Services, open the Log On tab and confirm the account and password. Re-enter the password if it was changed recently.
  3. Check the permissions on the service executable. In File Explorer, right-click the file shown by sc qc and the service name, open Properties, Security, and confirm the service account and SYSTEM have Read and Execute permission.
  4. Confirm the account has the "Log on as a service" right in the Local Security Policy (secpol.msc), under Local Policies, User Rights Assignment.
  5. Check the registry permissions on the service key under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ and the service name. The SYSTEM account needs full control there.
  6. Temporarily turn off third party security software and try again. Some security products block service startups they do not recognise.

If it still happens

If the error only appears for one service, the problem is usually that service's own files or account. If it appears for every service, check whether the account you are signed in with still has administrator rights, and run sfc /scannow in an admin Command Prompt.

Common questions

Does error 5 always mean I need to be an administrator? Not always. Starting a service needs administrator rights, but the error can also come from the service account lacking permission on its own files, even when you are an administrator.

How is service error 5 different from a file access denied error? The code is the same, but the context is different. Here the denied access happens while Windows starts a service, so the fix is in the service account, its file permissions, or its registry key, not in the file you were opening.

Related errors

Windows Service Error 1069 · Windows Service Error 1079 · Windows Update Error 0x80070005

Was this helpful?