When setting up a SharePoint Server, you often want certain service accounts to be able to have local log on rights, even though you’ll likely never manually log on to the servers as these accounts (such as the farm account). This is necessary for back-end processes to be able to proceed successfully in many cases (they’ll log on to the server as that account).
In order to do to this, go into your start menu and find the “Local Security Policy” App.
Then in “Local Security Policy”, under the category “User Rights Assignment”, double click on “Allow log on locally”.
Finally, add you SharePoint Farm account to the list of allow users.