What causes Scheduled Task error 2147942402?

Solution 1:

As Ryan Ries pointed out, 2147942402 translates to "File not Found" - which is a very appropriate response. Try and press Win+R, put in "move" and press enter - that's the interactive equivalent of what your task is failing to do.

The reason is that MOVE is not a program, but a native command in cmd.

It should be:

Program: "cmd.exe"
Arguments: "/c move C:\Windows\Temp\*.foo E:\Foo_blah_blah_blah_blah\Foo2\"

Solution 2:

The reason is: the Task is configured to be deleted when it is not scheduled to run again. This is configured in the Settings Tab. The deletion of the Task is done at the expiration time of the Trigger that fires the Task. If the expiration time of the trigger is exactly the same as the start time of the trigger it may (incidentally) happen that the Task is deleted a few seconds before its trigger fires. This causes the event 101 with reason code 2147942402. The solution is to set the expiration time of the trigger 1min later than the start time of the trigger.