I am trying to start a virtual machine via a batch file. The .bat file runs fine when I run it from the Windows command line. But when I run it from scheduled tasks, it exits with error code 1.
I am running the command line under the same user which the scheduled task is scheduled to run under. I have checked the permissions on the Scheduled Task, and it appears that I have all access which I need to the task. The "Run As" dialog has the proper password for the user which it is using.
The batch file is very simple:
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" -startvm "Debian"