8.0

Table Of Contents
2 (Optional) Run the Get-EsxSoftwarePackage cmdlet to view all available VIBs.
In the list, you can locate the names of the VIBs you want to compare.
3 Before comparing the VIBs, assign them to variables.
For example, you can create variables $vib1 and $vib2 to hold the names of the compared
VIBs.
$vib1 = Get-EsxSoftwarePackage -Name "ReferenceVIB"
$vib2 = Get-EsxSoftwarePackage -Name "ComparisonVIB"
4 Use a comparison operator to compare the VIBs by contents and acceptance level or by a
specific property.
n Compare the two VIBs by their contents and acceptance level.
if ($vib1 -eq $vib2) {
Write-host "Successfully verified that both VIBs are equal."
} else {
Write-host "Failed to verify that the VIBs are equal."
}
n Compare a specific property of the VIBs by using a comparison operator such as -eq, -lt,
-le, -gt, or -ge.
if ($vib1.VersionObject -lt $vib2.VersionObject) {
Write-host "Successfully verified that both the VIBs are equal."
} else {
Write-host "Failed to verify that the VIBs are equal."
}
vSphere ESXi Image Builder Workflows with PowerCLI Cmdlets
vSphere ESXi Image Builder workflows are examples for cmdlet use. Workflows do not represent
actual tasks, but illustrate how you might explore different ways of using a cmdlet. Administrators
trying out the workflows benefit from some experience with PowerCLI, Microsoft PowerShell, or
both.
Examine Depot Contents
You can examine software depots and VIBs with vSphere ESXi Image Builder cmdlets. You can
use wildcards to examine depot contents. All wildcard expressions are supported.
The workflow itself passes parameters by name. However, you can pass parameters as objects by
accessing variables.
You can use filtering options and wildcard expressions to examine depot contents.
Prerequisites
Verify that PowerCLI and prerequisite software is installed. See Install Prerequisite Software and
Configure vSphere ESXi Image Builder .
VMware ESXi Installation and Setup
VMware, Inc. 67