If you are scheduling tasks, no doubt you run across the issue that if you need a task run as a different user, said user needs the right to logon as a batch job. Doing this is fairly easy:
- Start secpol.msc
- Expand Local Policies -> User Right Assignment
- Find “Logon as a batch job”
- Add the user / service account as needed
This can of course also be set up via GPO.
- Source: Set Logon as batch job rights to User by Powershell, C# and CMD