Get-LcmImage

This cmdlet retrieves the vSphere Lifecycle Manager images available on a vCenter Server system. The cmdlet returns a set of vSphere Lifecycle Manager images that correspond to the filter criteria specified by the provided parameters. To specify a server different from the default one, use the -Server parameter.

Syntax

[-Category  <LcmImageCategory[]>]
[-Name  <String[]>]
[-Server  <VIServer[]>]
[-Type  <LcmImageType>]
[-Version  <String[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional
Category
LcmImageCategory[] named Specifies the categories of the vSphere Lifecycle Manager images you want to retrieve.
optional
Name
String[] named
  • wildcards
  • Specifies the names of the vSphere Lifecycle Manager images you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.
    optional
    Type
    LcmImageType named Specifies the type of the vSphere Lifecycle Manager images you want to retrieve.
    optional
    Version
    String[] named
  • wildcards
  • Specifies the versions of the vSphere Lifecycle Manager images you want to retrieve.

    -Id  <String[]>
    [-Server  <VIServer[]>]
    [CommonParameters]

    Parameters

    Required Parameter Name Type Position Features Description
    required
    Id
    String[] named Specifies the IDs of the vSphere Lifecycle Manager images you want to retrieve.
    optional
    Server
    VIServer[] named
  • wildcards
  • Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Lcm.LcmImage

    Examples


    Example 1

    PS C:\> Get-LcmImage -Type BaseImage -Version '7.0 GA - 15843807'

    Retrieves an ESXi base image with version 7.0 and build number 15843807 from the default connected servers.

    Example 2

    PS C:\> Get-LcmImage -Type VendorAddOn -Category @('Bugfix', 'Enhancement')

    Retrieves vendor add-ons that are either bug fixes or enhancements from the default connected servers.

    Related Commands

    Feedback

    Was this page helpful?