This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Review output of this script from all ESXi hosts for the presence of suspicious VIBs | |
$esxiHost = Get-VMHost | |
$array = @() | |
foreach ($i in $esxiHost) { | |
$vib = @($i | Get-EsxCli).software.vib.signature.verify.invoke() | |
Foreach ($obj in $vib){ | |
$object = New-Object PSObject | |
$object| Add-Member -MemberType NoteProperty -Name 'HostName' -Value $i.name | |
$object| Add-Member -MemberType NoteProperty -Name VIB_AcceptanceLevel -Value $obj.AcceptanceLevel | |
$object| Add-Member -MemberType NoteProperty -Name VIB_ID -Value $obj.ID |