EPM - Windows Task Scheduler and Log on As Batch
Symptom
When Windows Task scheduler is set to run a script, you have the option of having the script run whether the user is logged in or not. Doing so requires entering and storing credentials of a user. Also, there's a check box for "Run with highest privileges".
Environment
24.2;24.4;24.6;24.7;24.9;24.10 EPM EPM Agent
The user is not a local administrator and is trying to use Run a Windows Scheduled task, which is configured to "run whether the user is logged in or not" and "Run with highest privileges". Regardless of whether a policy is created to elevate the task scheduler or the script itself, there still may be an issue of the scheduled task being unable to run because the user doesn't have "Log on as a batch job" user rights assignment. This is not an EPM issue.
Cause
- This kind of scheduled task requires the user rights assignment "Log on as a batch job".
Computer Configuration > Security Settings > Local Policies > User Rights Assignment - Normally, local administrators have this user rights assignment.
- In your environment, a standard (non-admin) user might not have this user rights assignment
- In addition, there's a rarely used group policy for "Deny log on as a batch job" which may also affect this
Whether you make a policy to elevate the task scheduler or the script itself, you may still run into problems where the scheduled task can't run because the user doesn't have the "Log on as a batch job" user rights assignment.
Resolution
- Use domain GPO or local gpedit, depending on your management, to set the User Rights Assignment. Of course, Idira Support can't make this security recommendation - it must be evaluated at the customer level.
OR
- Another option would be to use EPM's "execute script" policy to schedule automation.