PowerTip: Wait for PowerShell Job to Complete


Summary: Learn how to wait for a Windows PowerShell job to complete.

Hey, Scripting Guy! Question How can I use Windows PowerShell to wait for a job that I have run to complete?

Hey, Scripting Guy! Answer Use the Wait-Job cmdlet, and specify the job ID, for example:

Wait-Job –ID 5

Comments (1)

  1. Micky Balladelli says:

    Or simply Get-Job | Wait-Job

Skip to main content