If Task Scheduler fails a task (error 0x80070006 handle invalid)
Suddenly (or perhaps after changes I made which I couldn’t remember) the program would not open anymore! Task Scheduler explained this as an error 0x80070006 handle invalid…
I tried to reconfigure the task using settings I was familiar with being sure they work, yet without success. Then I made this change which proved the right one. You can do the same in case you face this strange problem: Just delete the task and create it again!