Hi
I have a PC with 2 x Oracle VirtualBox VMs running for testing purposes(for now).
I have setup a .bat file with the following command;
========================================
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe startvm "VM1"
VBoxManage.exe startvm "VM2"
========================================
Then I have setup a task in windows task scheduler to auto execute the above .bat file upon system startup.
I know the command to shut down the VMs,
==========================================
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe controlvm "VM1" acpipowerbutton
VBoxManage.exe controlvm "VM2" acpipowerbutton
===========================================
But what I can not figure out is how to create a task to execute on system shutdown(and restarts)!
TLDR:
Want to automatically start and shutdown VMs on PCs start and shutdown(and restart) events.
Any ideas?
I have a PC with 2 x Oracle VirtualBox VMs running for testing purposes(for now).
I have setup a .bat file with the following command;
========================================
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe startvm "VM1"
VBoxManage.exe startvm "VM2"
========================================
Then I have setup a task in windows task scheduler to auto execute the above .bat file upon system startup.
I know the command to shut down the VMs,
==========================================
cd "C:\Program Files\Oracle\VirtualBox\"
VBoxManage.exe controlvm "VM1" acpipowerbutton
VBoxManage.exe controlvm "VM2" acpipowerbutton
===========================================
But what I can not figure out is how to create a task to execute on system shutdown(and restarts)!
TLDR:
Want to automatically start and shutdown VMs on PCs start and shutdown(and restart) events.
Any ideas?