Hi all,

I'm looking for using the VirtualBox COM API enums type with PowerShell.
As example, I want to add a SATA controller to a virtual machine
(object is called "$vm" in my example).
I'm using this line:
$vm_obj_storage_ctrl = $vm_obj.addStorageController("SATA Controller",2)

But referring to the COM API Manual, I can use the enums type
"StorageBus" in place of my hard-coder "2".
How to use this enums type in PowerShell ?
I would like to replace my old line by a new one like this:
$vm_storage_ctrl = $vm.addStorageController("SATA Controller",StorageBus::SATA)

Thanks,

Olivier

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

Reply via email to