Schedule a cmd file

Product:
Microsoft Windows 2019

Issue:
Message when you try to add a schedule

Solution:

On the local server use Local Security Policy manager:

  1. Click START and type secpol.msc then press Enter
  2. Expand Security Settings > Local Policies > User Rights Assignment node
  3. Double click Log on as a batch job
  4. Click the Add User or Group button and add your service account user
  5. Click OK

You should use a service account that is part of the administrator group, to ensure it have rights to do the task you have in your cmd script file.

More Information:
https://www.urtech.ca/2019/06/solved-this-task-requires-that-the-user-account-specified-has-log-on-as-batch-job-rights/