7.0

Table Of Contents
3 Generate a custom PXE image by running the New-PxeImage cmdlet with the parameters
Depots,SoftwareSpec and Destination. For example:
New-PxeImage -Depots “c:\temp\VMware-ESXi-7.0U1d-17551050-depot.zip” ,
“c:\temp\HPE-701.0.0.10.6.5.12-Jan2021-Synergy-Addon-depot.zip” -SoftwareSpec
“c:\temp\HPE-70U1d-custom.JSON” –Destination “C:\pxe-image”
The depot(s) include the path to the zip files for the supported ESXi version and vendor
add-on. The destination include the path and file name for the custom PXE file.
You can pass additional kernel options, create a live image, overwrite existing files, or
check acceptance levels for individual VIBs used during the creation of the image. For
more information about the New-PxeImage cmdlet, see https://code.vmware.com/docs/11794/
cmdletreference/doc/New-PxeImage.html.
What to do next
You can use the PXE image in remediation workflows of PXE booted ESXi hosts.
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 vSphere ESXi Image Builder and
Prerequisite Software.
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"
VMware ESXi Installation and Setup
VMware, Inc. 61