but if a task in the scheduler to run from a specific domain user and remove the Run with highest privileges checkbox?
maddison answered on March 19th 20 at 08:30
The user under which you run the task scheduler is configured in the job configuration.
Please note that when run from the scheduler, usually the current directory is c:\windows\system32 and not the directory with the script. Often errors when running from the scheduler are linked to the fact that the script expects that the current directory is the directory where the script itself.
Alexis.Turcot answered on March 19th 20 at 08:32
Most likely in the settings is checked to run the job for the user who is logged on. But if in the system no one is logged on then the task in progress. Try to configure to run the job even if nobody is logged on to the system.
+ view the logs of the jobs in the same console. There will be written the error, why the job is not executed. If there was no error, it just does not even start and therefore was not fulfilled some of conditions.
maeve_Muraz answered on March 19th 20 at 08:34
Usually the reasons are as follows -
Insufficient rights for user which is running.
Wrong way and the right environment when run from the scheduler.
Make sure that user has all necessary rights, make sure that paths are absolute and correct current directory.
To find out where exactly is the problem, use the debug - add to the script logging actions to a file.
charity61 answered on March 19th 20 at 08:36
You need to change the value from "the Launching user" to "Current user" in the following location:
Control panel - administrative tools - component Services - Computers - My computer - DCOM config - Microsoft Excel Application - Properties - Identity.