Wait-Job - Powershell 2.0 CmdLet
ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »
Wait-Job
Short description Suppresses the command prompt until one or all of the Windows PowerShell background jobs running in the session are complete. Syntax Description The Wait-Job cmdlet waits for Windows PowerShell background jobs to complete before it displays the command prompt. You can wait until any background job is complete, or until all background jobs are complete, and you can set a ma ximum wait time for the job. You can use Wait-Job to get background jobs that were started by using Start-Job or the AsJob parameter of Invoke-C ommand. When the commands in the job are complete, Wait-Job displays the command prompt and returns a job object so that yo u can pipe it to another command.