This describes on how to grant a user the Log on as a batch job user right. This user right allows a user to run tasks in the Task Scheduler when the user is not logged on.
Important: A user which belongs to the Local Administrators group already has this user right.
Go to the Start menu
Type secpol.msc and press Enter
The Local Security Policy manager opens
Go to Security Settings - Local Policies - User Rights Assignment node
Double click Log on as a batch job on the right side