It turned out that the easiest way to do this is to simply set the value of the control to the index that I need:
$ie = new-object -com "InternetExplorer.Application" $ie.navigate("mywebsite") $ie.visible = $true $doc = $ie.document $listbox = $doc.getElementByID(listboxID) $listbox.value = 1
This selects the first value in the list. I do not know how to say what this meaning is, if you still do not know it. Or choose based on text, but I don't need it.
source share