OS: Windows Server 2008 R2 Enterprise
I am unable to get the Task Scheduler to run .bat files while I am logged off. I have a a production .bat file I want to use, b
Try this as well..
Resolved the "Run whether user is logged on or not" by setting the “Log on as Batch Job” security policy.
Here is details on the setting… https://danblee.com/log-on-as-batch-job-rights-for-task-scheduler/
You may take another approach, but here is the steps… 1) I updated the default domain group policy by adding my admin account (that I fire the task with) to the “Log on as Batch Job” security policy. (Even though ADMIN group is listed, and I am using an admin account) 2) I forced GPUPDATE on the client 3) Rebooted the client 4) Looked at the policy on the client to make sure it made it over from the DC 5) Set the task "Run whether user is logged on or not" 6) Ran the task on demand and it worked creating a PDF file. 7) Logged out and ran the task at scheduled time and it worked creating a PDF file.