Wait-HCXJob Command | Vmware PowerCLI Reference

Wait-HCXJob

This cmdlet waits for the job to complete. The cmdlet blocks the execution of PowerShell until all specified jobs are completed successfully, failed, or times out.

Syntax

Wait-HCXJob
-Job < HCXJob[] >
[-ProgressAction < ActionPreference > ]
[-Server < HcxServer[] > ]
[-Timeout < Int32 > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Job HCXJob[] named
  • pipeline
Specifies the HCX job for which you want to wait to complete.
optional ProgressAction ActionPreference named
optional Server HcxServer[] named
Specifies the HCX 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-HCXServer cmdlet.
optional Timeout Int32 named
Specifies the time in milliseconds seconds.

Output

System.Object

Examples

Example 1

Wait-HCXJob -Job $job

Waits for the job to complete.

Related Commands

HCXJob

This cmdlet retrieves a list of the HCX job.

This cmdlet waits for the job to complete.