6.7

Table Of Contents
You can type cmdlets, parameters, and parameter values in the PowerCLI shell.
n
Get help for any cmdlet by running Get-Help cmdlet_name.
n
Remember that PowerShell is not case sensitive.
n
Use tab completion for cmdlet names and parameter names.
n
Format any variable and cmdlet output by using Format-List or Format-Table or their short forms
fl or ft. See Get-Help Format-List.
n
Use wildcards for searching and filtering VIBs and image profiles. All wildcard expressions are
supported.
Passing Parameters by Name
You can pass in parameters by name in most cases and surround parameter values that contain spaces
or special characters with double quotes.
Add-EsxSoftwarePackage -ImageProfile profile42 -SoftwarePackage "partner package 35"
Passing Parameters as Objects
You can pass parameters as objects if you want to do scripting and automation. You can use the
technique with cmdlets that return multiple objects or with cmdlets that return a single object.
1 Bind the output of a cmdlet that returns multiple objects to a variable.
$profs = Get-EsxImageProfile
2 When you run the cmdlet that needs the object as input, access the object by position, with the list
starting with 0.
Add-EsxSoftwarePackage -ImageProfile $profs[4] -SoftwarePackage partner-pkg
The example adds the specified software package to the fifth image profile in the list returned by Get-
EsxImageProfile.
Most of the examples in the vCenter Server Installation and Setup documentation pass in parameters by
name. vSphere ESXi Image Builder Workflows includes examples that pass parameters as objects.
Using vSphere ESXi Image Builder with the vSphere Web Client
You can manage software packages (VIBs), image profiles, and software depots by using the vSphere
ESXi Image Builder service in the vSphere Web Client.
n
Add a Software Depot
Before you can work with software depots and customize image profiles, you must add one or more
software depots to the vSphere ESXi Image Builder inventory. You can add a software depot by
using the vSphere Web Client.
VMware ESXi Installation and Setup
VMware, Inc. 44