3
3

More than 5 years have passed since last update.

WSHでVirtualBoxの仮想マシンを起動する

Last updated at Posted at 2015-06-20

WSH上のJScriptでVirtualBoxの仮想マシンを起動させてみました。例では「Windows 8.1 Pro JP 32bit」という名前を指定して起動します。まずは、これを出発点に色々実験しようと思っています。

var vb = WScript.CreateObject("VirtualBox.VirtualBox");
var session = WScript.CreateObject("VirtualBox.Session");
var machine = vb.findMachine("Windows 8.1 Pro JP 32bit");
// WScript.echo(machine.id);
var progress = machine.launchVMProcess(session, "gui", "");
progress.waitForCompletion(-1);
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3