Pages

Friday, February 1, 2013

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.

Congratulation you are done ;)

7 comments:

  1. Hi,

    Thanks. I followed but the button "Add User or Group" is greyed out.I am adding it in our DC. Pls adv.

    Regards,
    Jett

    ReplyDelete
    Replies
    1. Hi Jett,
      If you server is under DC, you need Set Up "Log on as a Batch job" policy in the "Group Policy Management"
      Click "Start", in "Start Search" type "gpmc.msc" and press Enter
      Click to expand "Forest" > "Domain" > "Domain Name of your Organization"
      Right Click in "Default Domain Policy" and click on "Edit"
      In "Computer Configuration", click to expand "Policies" > "Windows Settings" > "Secutity Settings" > "Local Policies", then click in "User Right Assignment"
      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.
      In "log on as a batch job Properties" window, click to check "define these policy settings:"
      after that click "Add User or Group" and include the user or group do you need..
      and click OK to close all open windows.
      enjoy it :-)

      Delete
  2. Thanks for the post! This was exactly what I needed.

    ReplyDelete
  3. Hi,
    Thanks for useful blog.
    Regards,
    Faisal

    ReplyDelete
  4. Thanks this is exactly what I was looking for!

    ReplyDelete
  5. Thanks this is exactly what i was looking for!

    ReplyDelete
  6. it was very helpful, thanks osmani.

    ReplyDelete