Skip to content

Instantly share code, notes, and snippets.

View trimarcjared's full-sized avatar

Jared Haight trimarcjared

View GitHub Profile
@trimarcjared
trimarcjared / VIB_Signature_Check.ps1
Created October 12, 2022 00:24
Bad VIB(E)s Signature Check
# 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