Thursday, September 3, 2015

This task requires that the user account specified has Log on as batch job rights. Windows Serever 2003 and 2008.

When you trying to run a bat file application from Task Schedule, you get the following notification:

"Task Schedule: This task requires that the user account specified has Log on as batch job rights".


To solve this issues follow this instructions:


  1. Click Start,
  2. In "Start Search" type secpol.msc and press Enter.
  3. In "Local Security Policy" window, click to expand "Local Policy".
  4. Click to open "User Rights Assignment".
  5. In the right panel, right click on "Log on as a Batch job" then click on "Properties".
  6. In "Log on as batch job Properties" window, click "Add User or Group" and include the user or group do you need.
  7. Click OK, and close "Local Security Policy" window.

Now you are ready to running a bat file application from Task Schedule.


IF :"Add User or Group" is grayed out. Then here below is workaround for DC 


  1. If you server is under DC, you need Set Up "Log on as a Batch job" policy in the "Group Policy Management"
  2. Click "Start", in "Start Search" type "gpmc.msc" and press Enter
  3. Click to expand "Forest" > "Domain" > "Domain Name of your Organization"
  4. Right Click in "Default Domain Policy" and click on "Edit"
  5. In "Computer Configuration", click to expand "Policies" > "Windows Settings" > "Secutity Settings" > "Local Policies", then click in "User Right Assignment"
  6. In the Policy panel seach "Log on as a batch job" policy, on "Log on as a batch job" policy right click and select properties.
  7. In "log on as a batch job Properties" window, click to check "define these policy settings:"
  8. after that click "Add User or Group" and include the user or group do you need..
  9. and click OK to close all open windows.



2 comments: