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
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Job | HCXJob[] | Specifies the HCX job for which you want to wait to complete. | true | True (ByValue) | |
Server | HcxServer[] | 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. | false | False | |
Timeout | Int32 | Specifies the time in seconds. | false | False |
Return Type
System.ObjectNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> Wait-HCXJob -Job $job
Waits for the job to complete.