An Introduction To PowerShell Background Jobs

Have you ever sat at a PowerShell prompt just waiting for your last foreach loop to finish what you sent it down the pipeline? That can be incredibly time consuming! Not to mention a bit annoying if you forget to check the count of the object going down the pipeline. But hey, there is a better way!

With PowerShell, you can create background jobs to complete tasks in the background while you continue working at your prompt. This is as easy as piping objects to Start-Job and then continuing to work at your PowerShell prompt. You can monitor the jobs with Get-Job and receive their return with Receive-Job.