On Thu, Aug 11, 2011 at 9:16 PM, Martin Simmons <[email protected]> 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

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to