Enable Log on as a Batch Job

Often times you will find the need to have a script run monthly, weekly or even daily on a server. Instead of being a jabroni and running the script manually, you’ll probably use Task Manager to take care of the script for you.

Sometimes, however, Task Manager requires the user account running the task to have remote access to run a batch file. This problem can be a real show stopper and can ruin your day. Without further ado, here is how to fix the issue:

  • Log on to the desired server (typically as local or domain administrator)
  • Start > Run > gpedit.msc and click OK
  • Browse to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment
  • Locate “Log on as a batch job” and double-click to modify the settings
  • Add the desired User or Group

You can now run the script as that user without receiving an error.

Leave a comment