Get-DepotComponents - vSphere ImageBuilder Reference

PowerCLI Reference

vSphere ImageBuilder Reference

Get-DepotComponents

Synopsis

This cmdlet retrieves basic information about components in the software depot.

Syntax

Get-DepotComponents [-Depot] <String> [[-Id] <String>] [<CommonParameters>]

Related Commands

Get-DepotAddons
Get-DepotBaseImages
Get-DepotInfo
Get-DepotVibs
New-IsoImage
New-PxeImage

Detailed Description

This cmdlet retrieves an array of objects that provide basic information about components in the software depot. Optionally, you can use the -Id parameter to get an object with detailed information about the component with the specified ID.

Parameters

Name Type Description Required? Pipeline Input Default Value
Depot String Specifies the location of the software depot that contains the components. The value can be either a file path to an offline depot in the format of "C:\<depot>.zip" or an URL address to the index file of the online depot in the format of "https://<address-to-depot>/index.xml". true false None
Id String Specifies the ID of a component contained in the specified software depot. The ID value must be in the format of "<name>:<version>". false false None

Return Type

Bulletin/array of Bulletinfo

Notes

No notes

Examples

-------------- List components in depot (offline) --------------

C:\PS>Get-DepotComponents "C:\<depot>.zip"

Retrieves an array of all the components contained in the software depot located at "C:\<depot>.zip"./p>

-------------- List components in depot (online) --------------

C:\PS>Get-DepotComponents "https://<address-of-depot>/index.xml"

Retrieves an array of all the components contained in the software depot located at "https://<address-of-depot>/index.xml".

-------------- Get component by id (offline) --------------

C:\PS>Get-DepotComponents "C:\<depot>.zip" -Id "<component-id>"

Retrieves detailed information about the component with ID "<component-id>" from the software depot located at "C:\<depot>.zip".

-------------- Get component by id (online) --------------

C:\PS>Get-DepotComponents "https://<address-of-depot>/index.xml" -Id "<component-id>"

Retrieves detailed information about the component with ID "<component-id>" from the software depot located at "https://<address-of-depot>/index.xml".


Copyright © 1998 - 2020 VMware, Inc. All rights reserved.