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

-Job  <HCXJob[]>
[-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
    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

    Feedback

    Was this page helpful?