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
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
HCXJob[] | named |
|
Specifies the HCX job for which you want to wait to complete. | optional |
|
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 |
|
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.