小编use*_*818的帖子

VirtualBox + Powershell?

我创建了一个虚拟机.现在我尝试使用Powershell启动它.我已经在互联网上搜索了有关如何做到这一点的任何细节.这是我发现的唯一代码......

#----------------------
$vBox = New-Object -ComObject VirtualBox.VirtualBox
$vBox | Get-Member *

$vBox.Machines

$vBox.CreateMachine()
#----------------------
Run Code Online (Sandbox Code Playgroud)

(来源:http://www.ravichaganti.com/blog/? p = 1275)

实际上,我无法在virtualbox.org上找到有关com对象的任何文档.我对powershell非常擅长,我花了一些时间来探索com对象...

$vBox | gm
Run Code Online (Sandbox Code Playgroud)

我尝试了所有我能想到但却只收到错误的东西.我的问题是如何使用Powershell启动我的VM

谢谢

powershell virtualbox comobject

3
推荐指数
1
解决办法
7366
查看次数

标签 统计

comobject ×1

powershell ×1

virtualbox ×1