8.0

Table Of Contents
Preserve Image Profiles Across Sessions with PowerCLI Cmdlets
When you create an image profile and exit the PowerCLI session, the image profile is no longer
available when you start a new session. You can export the image profile to a ZIP file software
depot, and add that depot in the next session.
Prerequisites
Install the PowerCLI and all prerequisite software. See Install Prerequisite Software and Configure
vSphere ESXi Image Builder .
Procedure
1 In a PowerCLI session, create an image profile, for example by cloning an existing image
profile and adding a VIB.
2 Export the image profile to a ZIP file by calling Export-EsxImageProfile with the
ExportToBundle parameter.
Export-EsxImageProfile -ImageProfile "my_profile" -ExportToBundle -FilePath
"C:\isos\temp-base-plus-vib25.zip"
3 Exit the PowerCLI session.
4 When you start a new PowerCLI session, add the depot that contains your image profile to
access it.
Add-EsxSoftwareDepot "C:\isos\temp-base-plus-vib25.zip"
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 Prerequisite Software and Configure
vSphere ESXi Image Builder .
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.
VMware ESXi Installation and Setup
VMware, Inc. 66