7.0

Table Of Contents
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 Run the Get-EsxImageProfile cmdlet to list all image profiles in all currently visible depots.
You can narrow your search by using the optional arguments to filter the output.
Get-EsxSoftwarePackage -CreatedAfter 7/1/2010
3 Create a new profile, assign it a name and vendor, and add a base package.
New-EsxImageProfile -NewProfile -Name "Test #2" -vendor "Vendor42" -SoftwarePackage esx-
base[0],esx-xlibs[0]
The example uses the esx-base package. In most cases, you include the esx-base package
when you create a new image profile. Names that contain spaces are surrounded by quotes.
4 Use a pipeline to pass the new image profile to format-list for detailed information about
the new package.
(Get-EsxImageProfile -Name "Test #2").VibList | format-list
Example: Creating Image Profiles from Scratch Using Variables
This command sequence repeats the steps of the workflow, but passes parameters as objects,
accessed by position in a variable, instead of passing parameters by name. You can run the
following commands in sequence at thePowerCLI prompt.
Add-EsxSoftwareDepot depoturl
$pkgs = Get-EsxSoftwarePackage -CreatedAfter 7/1/2010
$ip2 = New-EsxImageProfile -NewProfile -Name "Test #2" -vendor "Vendor42" -SoftwarePackage
$pkgs[0]
$ip2.VibList | format-list
Edit Image Profiles Workflow
You can create a custom image by cloning and editing an image profile by using PowerCLI. You
can add or remove one or more VIBs in the existing profile. If adding or removing VIBs prevents
the image profile from working correctly, an error occurs.
VMware ESXi Installation and Setup
VMware, Inc. 72