Install-LXCAUpdateManagementServer

This cmdlet installs a management-server update.

Note: You cannot pipe objects to this cmdlet.

Syntax

Install-LXCAUpdateManagementServer [-Connection LXCAConnection]
                                    -FixId String
                                   [-AsJob]
                                   [-WaitForJob]
                                   [-Schedule ScheduleObject]
                                   [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.
-FixId String
Specifies the ID of the management-server update package to be applied. The ID can be retrieved from cmdlet Get-LXCAManagementServerPackage.
-AsJob
If specified, the cmdlet runs as background job and returns a Job object immediately.
-WaitForJob
When specified with the -AsJob parameter, PowerShell waits for this background job in XClarity Administrator to either start or complete before running the next cmdlet in the script. This can be one of the following values.
  • ToStart. PowerShell waits until this background job starts in XClarity Administrator, so multiple jobs can run synchronously.

  • ToEnd. PowerShell waits until this background job completes in XClarity Administrator, so that one only job runs at a time.

If this parameter not specified, this cmdlet does not wait. The next cmdlet in the script runs regardless of whether this background job starts or completes.

If -AsJob is not specified, this parameter is ignored.

-Schedule ScheduleObject
When specified, the cmdlet runs based on the specified schedule.
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

If you specify the -Asjob parameter, this cmdlet returns a Job object. You can retrieve the UpdateResult object from Job.Output when the job is complete. You can retrieve the SubJob from Job.GetSubJobStatus() to get the status of each update.

If you do not specify the -Asjob parameter, this cmdlet does not return an object.

Examples

Related links