What if task doesn't have `Allow task to be run on demand` enabled? It gives an error. How to enable run on demand?
– ST3Jul 07 '15 at 11:52
1
How about opening the task and tick/enable run on demand in setting? Do you ask how to do it programmatically? You would need to find an API for that. Task parameters are stored in registry (at least in Windows 7, under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks) but it is stored in a form of a hash so it is not that easy to update
– KodakJul 08 '15 at 06:50