Get-LXCAUpdatePackage

This cmdlet retrieves a list of firmware-update packages in the firmware-updates repository.

Note: You cannot pipe objects to this cmdlet.

Syntax

Get-LXCAUpdatePackage [-Connection LXCAConnection]
                      [-MachineType String[]]
                      [CommonParameter]

Parameters

-Connection LXCAConnection
Specifies the connection to the Lenovo XClarity Administrator server. If no connection is specified, the result from the last Connect-LXCA cmdlet is used.
-MachineType String[]
Specifies one or more machine types. If no machine type is specified, update packages for all machine types are returned.
CommonParameters
This cmdlet supports the following common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -WarningAction, -WarningVariable, -OutBuffer, -PipelineVariable, -OutVariable. For detailed information about each common parameter, see the Microsoft PowerShell Common Parameters webpage.

Results

This cmdlet returns one or more UpdatePackage objects.

Examples

The following example retrieves information about the update packages for all available machine types in the firmware-updates repository.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$packages = Get-LXCAUpdatePackage

Disconnect-LXCA

The following example retrieves information about the update packages for specific machine types in the firmware-updates repository.

$cred = Get-Credential
Connect-LXCA -Host 192.0.2.0 -Credential $cred

$packages = Get-LXCAUpdatePackage -MachineType 7893,8724

Disconnect-LXCA

Related links