Logon failure: the user has not been granted the requested logon type at this computer. (0x80070569)
If you receive this error
from the Windows Task Scheduler then it means the user account does not
have the access rights to run scheduled tasks. To fix this:
- Login as an administrator user
- Go to Control Panel -> Administrative Tools -> Local Security Policy
- Expand the tree on on the left to show Local Policies -> User Rights Assignment
- Double-click on "Log on as batch job" on the right
- Click the "Add User or Group..." button and add the user. Note: you probably need to add the user specifically; adding a Group (of which the user is a member) may not be sufficient.
- Download the Windows 2003 Resource Kit
- Run the installer as Administrator
- Ignore the message that it has known incompatibilities with Windows 7 and install it anyway
- Run a command prompt as Administrator (Start > All Programs > Accessories, then Right Click on "Command Prompt" and choose "Run as Administrator")
- Navigate to the installation directory for the resource kit. In a default installation, you would type:
If you are using a 64-bit version of Windows: cd "C:\Program Files (x86)\Windows Resource Kits\Tools"
If you are using a 32-bit version of Windows: cd "C:\Program Files\Windows Resource Kits\Tools"
- Issue the NTRIGHTS command as follows:
ntrights -u USERNAME +r SeBatchLogonRight
Where you replace USERNAME with the correct username. Then you are done.
- The SeBatchLogonRight option is not listed if you type ntrights -h, but it is documented by Microsoft at http://support.microsoft.com/kb/315276