Starting a VM with a Scheduled Task
Posted: 2. Mar 2015, 17:43
I need to start a VM with a scheduled task in a Windows 7 64bit host.
I created a .vbs file like the following one:
and a scheduled task that looks like:
If I run the .vbs script manually with the same parameters it works fine; if I try to start the scheduled task nothing happens.
How can I solve the issue?
Is there any documentation I can read?
Regards
marius
I created a .vbs file like the following one:
Code: Select all
Set WshShell = WScript.CreateObject("WScript.Shell")
ReturnCode = WshShell.Run("""c:\program files\oracle\virtualbox\vboxmanage.exe"" startvm ""My_VM_name"" --type headless", 0, True)
Code: Select all
CScript.exe //Nologo //B F:\Work\start_vm.vbs
How can I solve the issue?
Is there any documentation I can read?
Regards
marius