The user has not been granted the requested logon type at this machine The user has not been granted the requested logon type at this machine powershell powershell

The user has not been granted the requested logon type at this machine


I have managed to fix this myself. You need to go to Start->Administrative Tools->Local Security Policy.

Navigate to Local Policies->User Rights Assignment->Allow Log On Locally, and add the usernames of the accounts/groups which require access.