[vbox-dev] PowerShell with the COM API and enums usage
Olivier Cochard-Labbé
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.
>
Hi Martin,
thanks a lot's for your tips with oleview.
This confirm that the enums need to be used like this:
[????.StorageBUS]::StorageBus_SATA
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
directory".
Source: http://msdn.microsoft.com/en-us/library/hh228154.aspx
Problem resolved: It's a Power(less)Shell feature :-)
Thanks all for your help.
Olivier
More information about the vbox-dev
mailing list