Batch Files, Task Scheduler and PSTools - and a EULA?

Here’s an interesting issue: Systems Administrators use scheduled tasks to run batch files as a normal part of their job.  In this specific instance, our customer was using the PsService and PsTools utilities to perform some service queries on different servers.  The problem that he was running into was that the task never executed the query when […]

Here’s an interesting issue: Systems Administrators use scheduled tasks to run batch files as a normal part of their job.  In this specific instance, our customer was using the PsService and PsTools utilities to perform some service queries on different servers.  The problem that he was running into was that the task never executed the query when run from Task Scheduler, but they ran fine when executed manually.

In these instances, the immediate assumption is that the problem must be due to permissions.  However, in this instance, the task was running in the context of a service account with administrative privileges.  Thus, the immediate culprit was ruled out. […]

Full Article