trying to find a vib on my hosts having a problem with the output
$data = @()
$vmhosts = get-vmhost -name (get-content esxhosts.txt)
foreach($vmhost in $vmhosts){
$esxcli = $vmhost | get-esxcli
$item = "" | select Host, vib
$item.host = $vmhost.name
$item.vib = $esxcli.software.vib.list() | ? {$_.name -eq "test*"} | select Name
$data += $item
}
$data | out-gridview
but the vib output is strange
@{Name=test}
any idea how to correct this