PowerShell 2.0: One Cmdlet at a Time 17 Receive-Job
Continuing the series looking at new cmdlets available in PowerShell 2.0. This time we look at the Receive-Job cmdlet.
What can I do with it?
Retrieve the results of a background job which has already been run.
Example:
Retrieve the results for the job with ID 1 and keep them available for retrieval again. (The default is to remove them)
Receive-Job -Id 1 -Keep
How could I have done this in PowerShell 1.0?
The concept of jobs did not exist in PowerShell 1.0. You would have needed to open an extra PowerShell session whilst you waited for a command to complete in your current session.