Forum Discussion
DavidYorkshire
May 24, 2022Iron Contributor
Task Scheduler on Windows Server - 0x2 error
We have several terminal servers (2019), and on all of them there are some Excel addins in use which can be temperamental and need a reboot if they give trouble. Therefore, I've created a scheduled t...
DavidYorkshire
May 26, 2022Iron Contributor
Created the first of those directories, from an administrative command prompt. Second one already existed.
Doesn't seem to have made any difference - task is still giving a 0x2.
Thanks
Doesn't seem to have made any difference - task is still giving a 0x2.
Thanks
LainRobertson
May 26, 2022Silver Contributor
Yeah, fair enough - it was only an educated guess at best. Task Scheduler could be looking for anything (though probably something related to creating the session environment passed into the CreateProcess call.)
Within Process Monitor, you can configure a filter like the one shown below to find what is missing. There's not much value in me making further guesses on what the missing component might be.
Ideally, you want to:
- Set up the filter first while paused;
- Make sure the history has been cleared;
- Start the capture;
- Start the scheduled task;
- Stop the trace once complete (should only take seconds to fail);
- Check the results.
The only display filters you'd want to check out are the files and registry filters, and even then, possibly just one at a time if the number of returned rows is significant.
Process Monitor filter
Example results, also showing the display filters
Cheers,
Lain