I'm trying to run an exe as a scheduled task on a Windows 2008 R2 Domain Controller.
The exe runs fine when I try and run it manually using an account which is a Domain Administrator, but I don't want to run scheduled tasks as a Domain Admin, for obvious reasons.
Since I can't set Local Admins on a Domain Controller, that isn't an option here. I have added the user that the task should run as to "Log on as a batch job" in the group policy which is applied to domain controllers, but I'm still getting errors.
I'm just trying to use the regular Task Scheduler, not
This works fine on the couple of Windows Server 2003 Domain Controllers we still have, but they are on their way out. So I'm assuming this isn't an issue with the script itself. At minimum I'd like to know for sure if I have the correct settings in place to allow a specific non-Domain admin user to run a script on a domain controller.
Update: User is included as Server Operator group in AD. Batch file still doesn't run correctly.