powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-EsxSoftwarePackage



NAME
Get-EsxSoftwarePackage

SYNOPSIS


SYNTAX
Get-EsxSoftwarePackage [[-Name] ] [[-Version] ] [-Vendor ] [-AcceptanceLevel nceLevels[]>] [-ReleasedBefore ] [-ReleasedAfter ] [-Newest] [-WarningAction
] [-WarningVariable ] [-WhatIf] [-Confirm] []


DESCRIPTION
Returns a list of SoftwarePackage (VIB) objects from all the connected depots, filtered by one or more options. T
he output is in table form by default. You can pass VIB package names and versions to the New-EsxImageProfile, Set-
EsxImageProfile, Add-EsxSoftwarePackage, and Remove-EsxSoftwarePackage cmdlets via the -SoftwarePackage parameter.


The output of this cmdlet can also be piped into Add-EsxSoftwarePackage and Remove-EsxSoftwarePackage. See the exa
mples under those cmdlets.


PARAMETERS
-Name
Filters the output to list only VIBs whose Name field matches one of the strings supplied. Wildcard characters
are supported.

Required? false
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Version
Filters the output to list only VIBs whose Version field matches one of the strings supplied. Wildcard characte
rs are supported.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Vendor
Filters the output to list only VIBs whose Vendor field matches one of the strings supplied. Wildcard character
s are supported.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-AcceptanceLevel
Filters the output to list only VIBs whose acceptance level matches one of the strings supplied. Must be one o
f the following values:
* VMwareCertified
* VMwareAccepted
* PartnerSupported
* CommunitySupported

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-ReleasedBefore
Filters the output list to only VIBs whose ReleaseDate is at the latest the DateTime value supplied. Can be a
string of the form MM/DD/YY.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-ReleasedAfter
Filters the output to list only VIBs whose ReleaseDate is at the earliest the DateTime value supplied. Can be
a string of the form MM/DD/YY.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Newest
Filters the output to list only the newest versions of all VIBs. For example, if there are two versions of the
"Base-ESX" VIB, "5.0.0-10", and "5.0.0-456", returns only Base-ESX version "5.0.0-456".

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WhatIf


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




---------- Example 1 ----------

C:\PS>Get-EsxSoftwarePackage


List all the VIBs from all depots in table form:

---------- Example 2 ----------

C:\PS>Get-EsxSoftwarePackage | Sort-Object ReleaseDate | Format-Table -Property Name,Version,Vendor


List all the VIBs, sorted by date:

---------- Example 3 ----------

C:\PS>Get-EsxSoftwarePackage -Vendor "VMware","Cisco" -ReleasedAfter 1/1/2010


List all the VIBs from VMware and Cisco released after Jan 1, 2010:

---------- Example 4 ----------

C:\PS>Get-EsxSoftwarePackage | ? {$_.Vendor -ne "VMware"}


List all the VIBs from vendors other than VMware

---------- Example 5 ----------

C:\PS>Get-EsxSoftwarePackage -Name "esx-base" -Version "5.0.0-*"


List all the base VIBs for the 5.0.0 release:

---------- Example 6 ----------

C:\PS>$vibs = Get-EsxSoftwarePackage -Name "esx-base" -Version "5.0.0-*"


Save the results of a VIB query for later:


RELATED LINKS