4
Use
-Newest
Get-EsxSoftwarePackage -Vendor "V*" -Newest
n
Returns the newest package for the vendors starting with V and displays the information as a table.
Get-EsxSoftwarePackage -Vendor "V*" -Newest | format-list
n
Pipes the output of the request for software packages to the PowerShell
displays detailed information about each software package.
5
Display the list of VIBs in the image profile.
(Get-EsxImageProfile -Name "Robin's Profile").VibList
is a property of the
VibList
ImageProfileDiff Objects,"
6
Retrieve software packages released before or after a certain date by using the
CreatedAfter
Get-EsxSoftwarePackage -CreatedAfter 7/1/2010
Example: Depot Content Examination Using Variables
This example workflow examines depot contents by passing in parameters as objects, accessed by position
in a variable, instead of passing in parameters by name. You can run the following commands in sequence
from the PowerCLI prompt. Replace names with names that are appropriate in your installation.
Get-EsxSoftwarePackage -Vendor "V*"
Get-EsxSoftwarePackage -Vendor "V*" -Name "r*"
Get-EsxSoftwarePackage -Version "2.0*"
$ip1 = Get-EsxImageProfile -name ESX-5.0.0-123456-full
$ip1.VibList
Get-EsxSoftwarePackage -CreatedAfter 7/1/2010
Creating Image Profiles by Cloning Workflow
You can use Image Builder cmdlets to check which depots are available, to add a depot, to display image
profile information, and to create a new image profile by cloning one of the available image profiles.
Before you use the cmdlets in this workflow, make sure your environment meets the following
requirements.
VMware PowerCLI and prerequisite is software installed. See
n
Prerequisite Software,"
If you encounter problems running PowerCLI cmdlets, consider changing the execution policy. See
n
"Using Image Builder Cmdlets,"
Published profiles are usually read only and cannot be modified. Even if a published profile is not read
only, cloning instead of modifying the profile is a best practice, because modifying the original profile erases
the original. You cannot revert to the original, unmodified profile except by reconnecting to a depot.
A profile cloning workflow might include checking the current state of the system, adding a software depot,
and cloning the profile.
1
In a PowerShell window, check whether any software depots are defined for the current session.
$DefaultSoftwareDepots
PowerShell returns the currently defined depots, or nothing if you just started PowerShell.
2
If necessary, add the depot that includes the profile you want to clone to the current session.
VMware, Inc.
to find the newest package.
ImageProfile
on page 230.
parameter.
on page 233.
on page 234.
object. See
"Structure of ImageProfile, SoftwarePackage, and
"Install Image Builder PowerCLI and
Chapter 7 Installing ESXi
cmdlet and
format-list
or
CreatedBefore
243
Need help?
Do you have a question about the VS4-ENT-PL-A - vSphere Enterprise Plus and is the answer not in the manual?