powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Add-EsxSoftwareDepot



NAME
Add-EsxSoftwareDepot

SYNOPSIS


SYNTAX
Add-EsxSoftwareDepot [-DepotUrl] [-WarningAction ] [-WarningVariable ] [ nParameters>]


DESCRIPTION
Adds an ESX software depot or offline depot ZIP file to the current PowerCLI session. Use this cmdlet right after y
ou start Image Builder by adding the Image Builder snap-in. The cmdlet imports metadata from the specified depots.
You can then create new image profiles and generate ISOs from the image profiles and VIBs in the depots. The metada
ta from the depots is kept in memory until the PowerCLI session ends. When you run the cmdlet, Image Builder downlo
ads and parses the metadata from the depot and analyzes the VIBs for dependencies.

The depot will be added to the list of depots maintained in the implicit session variable $DefaultSoftwareDepots th
at stores all software depots (similar to $DefaultVIServers).


If the software depot was previously added, metadata from the depot will be downloaded again.


PARAMETERS
-DepotUrl
Either a string or an array of strings; each string represents the URL of a depot or a file path to an offline
depot ZIP file. The offline depot ZIP file must have the .zip extension.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
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


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>Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml


Connect to a depot.

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

C:\PS>$depot = Add-EsxSoftwareDepot https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml


Connect to a depot, saving it to a variable.


RELATED LINKS