[vbox-dev] PowerShell with the COM API and enums usage

Martin Simmons martin at lispworks.com
Thu Aug 11 19:16:50 GMT 2011


>>>>> On Thu, 11 Aug 2011 10:30:49 +0200, Olivier Cochard-Labbé said:
> 
> 2011/8/11 Nikolay Igotti <igotti at gmail.com>:
> >  Hi Oliver,
> >
> >  Have you considered using search engines? For example
> > http://weblogs.asp.net/soever/archive/2006/12/11/powershell-and-using-net-enum-types.aspx
> > is the first hit on Google. For us typelib prefix is likely
> > VirtualBox.VirtualBox.
> 
> Hi Nikolay,
> 
> Thanks but I already know the given URL, and this article explain only
> how to use enum type in PowerShell.
> 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.

__Martin




More information about the vbox-dev mailing list