Greetings,
Your 3rd machine, the one that always runs the scheduled task in the background, has something different (something installed, something running, etc.) than the other two machines that run the same scheduled task in the foreground.
Read the following article on:
"Foreground/Background priority"
An excerpt from that article:
Any foreground process will have its threads boosted to 2 units above the background priority. This makes the program you are working on more responsive to the mouse and keyboard than a program that is running in the background, for example, checking email.
....But what this means, for example, is that a background program that comes out of I/O wait on an audio device is very likely to be able to exceed the priority of your foreground task that is simply doing a long computation. And moving the mouse is going to give your foreground thread, the one talking to the GUI, priority over the background thread of your foreground task that is talking to a serial port. (It doesn't know the difference between a background or foreground thread; all it knows is the thread that was waiting came out of a mouse wait, so that thread gets boosted).
End of excerpt.
See the whole article and a list of I/O priorties at the folowing site:
http://www.codeproject.com/system/simpletime.asp
(The foreground/background priority issue starts about 1/3rd down in the article, but the entire article is time related.)
I didn't answer your issue specifically, but perhaps this article will at least shed some light on it and lead you to a solution. The article was certainly interesting to me.
Regards,
Maxwell