This is super ugly, but I wanted as few lines as possible. Given a certain VIB name, this should give you a table of which hosts it is and isn’t loaded on. $True would indicate that it is installed. Maybe @alanrenouf can show me the PROPER way to do this 🙂
[code language=”powershell”] $VIBinstalled = @{}Get-VMHost | Sort Name | %{
$VIBinstalled.Add($_,((Get-EsxCli -VMHost $_).software.vib.list() |
Where-Object {$_.Name -like ""}) -ne $null)}
$VIBinstalled
[/code]
Here’s a screenshot: