There are some scripts for automatic start and stop batch of virtual machines in OracleVirtualBox via CLI.
I use scripts with Windows Task Scheduler.
- Open TaskScheduler, right-click on "Task Scheduler Library" and then click on "Create New Task"
- On "General" tab
- Write a name of task
- In "Secutiy option" block choose option
Run whether user is logged on or not
- In "Secutiy option" block set option
Run with highest privileges
- On "Triggers" tab click "New"
- Choose begin the task
At startup
- Set "Delay task for" to
30 sec
for getting system to warmup - Click "Ok"
- Choose begin the task
- On "Actions" tab click "New"
- Action must be set
Start a program
- In "Program/script:" write
powershell.exe
- In "Add arguments (optional)" write
-File <path_to_StartVMsScript.ps1>
- Click "Ok"
- Action must be set
- On "Conditions" tab
- Unset all options if you don't need neither.
- On "Settings" tab
- Unset options that stops the task
- Set options that needed only for you
- Open TaskScheduler, right-click on "Task Scheduler Library" and then click on "Create New Task"
- On "General" tab
- Write a name of task
- In "Secutiy option" block choose option
Run whether user is logged on or not
- In "Secutiy option" block set option
Run with highest privileges
- On "Triggers" tab click "New"
- Choose begin the task
On an event
- In "Settings" block choose
Basic
option - In "Settings" block set
System
for Log option - In "Settings" block set
User32
for Source option - In "Settings" block set
1074
for EventID option - Click "Ok"
- Choose begin the task
- On "Actions" tab click "New"
- Action must be set
Start a program
- In "Program/script:" write
powershell.exe
- In "Add arguments (optional)" write
-File <path_to_StartVMsScript.ps1>
- Click "Ok"
- Action must be set
- On "Conditions" tab
- Unset all options if you don't need neither.
- On "Settings" tab
- Unset options that stops the task
- Set options that needed only for you