我已经创建了一个虚拟机。现在我正尝试使用Powershell启动它。我已经在互联网上搜索了关于如何做到这一点的任何细节。这是唯一的代码,我发现...VirtualBox + Powershell?
#----------------------
$vBox = New-Object -ComObject VirtualBox.VirtualBox
$vBox | Get-Member *
$vBox.Machines
$vBox.CreateMachine()
#----------------------
(来源:http://www.ravichaganti.com/blog/?p=1275)
其实,我找不到上virtualbox.org COM对象的任何文件。我fiarly使用PowerShell proficent,我花了一些时间探索COM对象与...
$vBox | gm
我想每一件事我能想到的,但只有收到错误。为什么不直接使用VBoxManage命令行界面 - 我的问题是我怎么使用PowerShell
感谢
我的经验是,在一个PowerShell远程会话中运行'VBoxManage'(通过调用' - Command'或'输入 - PSSession')使用COM接口引擎盖下与virtualbox进行交互。为了解决这个问题,你必须设置另一个远程登录机制,例如SSH,以便“直接”运行VBoxManage。我很想知道我对此有错。 – Dan1701 2016-03-28 00:34:54