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:
- Click Start,
- In "Start Search" type secpol.msc and press Enter.
- In "Local Security Policy" window, click to expand "Local Policy".
- Click to open "User Rights Assignment".
- In the right panel, right click on "Log on as a Batch job" then click on "Properties".
- In "Log on as batch job Properties" window, click "Add User or Group" and include the user or group do you need.
- 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
- 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.
Thank you :)
ReplyDeletethanks alot
ReplyDelete