7.0

Table Of Contents
n Compare the two image profiles by VIB list and acceptance level using the -eq comparison
operator.
if ($imageProfile1 -eq $imageProfile2) {
Write-host "Successfully verified that both image profiles are equal."
} else {
Write-host "Failed to verify that the image profiles are equal."
}
n Compare the two image profiles by a specific property using the -eq comparison operator.
if ($imageProfile1.vendor -eq $imageProfile2.vendor) {
Write-host "Successfully verified that both image profiles are equal."
} else {
Write-host "Failed to verify that the image profiles are equal."
}
Compare VIBs with PowerCLI Cmdlets
You can compare two VIBs or their properties by using the PowerShell comparison operators.
Prerequisites
Install the PowerCLI and all prerequisite software. See Install vSphere ESXi Image Builder and
Prerequisite Software.
Procedure
1 In a PowerCLI session, run the Add-EsxSoftwareDepot cmdlet for each depot you want to
work with.
Option
Action
Remote depot Run Add-EsxSoftwareDepot -DepotUrl <depot_url>.
ZIP file a Download the ZIP file to a local file system.
b Run Add-EsxSoftwareDepot -DepotUrl C:\<file_path>\<offline-
bundle>.zip
The cmdlet returns one or more SoftwareDepot objects.
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"
VMware ESXi Installation and Setup
VMware, Inc. 63