PowerCLI Reference

Wait-HCXJob

Synopsis

This cmdlet waits for the job to complete.

Syntax

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

Related Commands

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
JobHCXJob[]Specifies the HCX job for which you want to wait to complete.trueTrue (ByValue)
ServerHcxServer[]Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet.falseFalse
TimeoutInt32Specifies the time in milliseconds seconds.falseFalse

Return Type

System.Object

Notes

Examples

-------------------------- Example 1 --------------------------

PS C:\> Wait-HCXJob -Job $job

Waits for the job to complete.


Copyright © VMware, Inc. All rights reserved.