[vbox-dev] PowerShell with the COM API and enums usage
olivier at cochard.me
Thu Aug 11 23:16:58 PDT 2011
On Thu, Aug 11, 2011 at 9:16 PM, Martin Simmons <martin at lispworks.com> wrote:
>> My question was "How to use the enums types included in the VirtualBox
>> COM API with PowerShell?".
>> Because [VirtualBox.VirtualBox.StorageBus] neither [VirtualBox.StorageBUS] work.
> Check the typelib with oleview.exe. I think the name is more like
> StorageBUS_SATA, with some prefix.
thanks a lot's for your tips with oleview.
This confirm that the enums need to be used like this:
But I still can't use it, and I've found that "such enumeration types
are not supported in PowerShell scripting on COM-type library
Problem resolved: It's a Power(less)Shell feature :-)
Thanks all for your help.
More information about the vbox-dev