How to fix the error : The SharePoint service failed to start due to the following error: The service did not start due to a logon failure
This happens when your service accounts don’t have enough permissions on the local computer.
To fix this error you have to go in the Local Security Policy of the Computer.
Local Security Policy > Local Policies > User Rights Assignment>Logon as a Service.
Open it and add your Service accounts inside. Afterwards, restart your server and all SharePoint services should start.
In some other cases, near the “Logon as a service” you might see this kind of icon:
This means that the policy is managed by GPO. You have to edit the GPO and add your SharePoint service accounts inside. Afterwards, restart your server and all SharePoint services should start.
Here are the steps to modify the Group Policy. Source Technet
- Click Start, point to Run, type mmc, and then click OK.
- On the File menu, click Add/Remove Snap-in.
- In Add/Remove Snap-in, click Add, and then, in Add Standalone Snap-in, double-click Group Policy Object Editor.
- In Group Policy Object, click Browse, browse to the Group Policy object (GPO) that you want to modify, click OK, and then click Finish.
- Click Close, and then click OK.
- In the console tree, click User Rights Assignment.
- In the details pane, double-click Log on as a service.
- If the security setting has not yet been defined, select the Define these policy settings check box.
- Click Add User or Group, and then add the appropriate account to the list of accounts that possess the Log on as a service right.
Say Thanks if it helped 🙂