A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Here is a workaround that you can try, although it doesn't asnwer the question of why.
No programming change is required, but when you create the scheduled task set the Configure for: (on the first screen of the task) to "Windows 2003 Server, Windows XP, Windows 2000". (Note that you cannot change this setting once the task has been created with the Windows 7 ... setting.)
Try this and see if it works for you .. it worked for me.
Actually, after further testing this is not the solution. While it allows you to submit the scheduled task while logged on and it runs correctly to completion, it still fails when you are not logged in. It works if you just 'disconnect' from a terminal server session, but not if you have logged off. So it is not really a viable solution.
Anyone else with an update?