This ask requires that the user account specified has Log on as batch job rights

Today in this article, we will cover below aspects,

Issue Description

While running Task scheduler configured jobs on the Windows server produce the below error,

“This Task requires that the user account specified has Log on as batch job rights”

Log on as batch job rights

Resolution

To resolve the error, please go to your machine’s local security policy.

Open Local Security Policy

To open Local Security Policy, on the Start screen, type the below command,

Command

secpol.msc 

and then press ENTER.

You can also use regular search using “Local Security Policy” in windows search,

Click on Security Settings -> User Rights Assignment

Under User Rights Assignment, please search for “Log on as a batch job”

Log on as batch job rights

Click on the option “Log on as a batch job”

This task requires that the user account specified has Log on

Click on the Add User group and add the user name. You can search for the actual username based on the username or email if any.

That’s all, save your settings and you are all set to run the job with the privileges your Id has.

References:

Did I miss anything else in these resolution steps?

Did the above steps resolve your issue? Please sound off your comments below!

Happy Coding !!



Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.



Leave a Reply

Your email address will not be published. Required fields are marked *