I have an application which gets called by a scheduled task. It moved from Windows Server 2003 to Windows Server 2008. On 2003, the app ran in the directory where the execut
Please see my answer to a similar question, of how to set the "Wake the computer to run this task..." option that is only available from the Task Scheduler UI (and via the XML), and not the schtasks.exe /create command line .
The nuts and bolts of it are:
schtasks.exe /create /tn MyTask ...schtasks.exe /query /xml /tn MyTask > MyTask.xmlschtasks.exe /create /tn MyTask /xml MyTask.xml /fDetails are here.