From the course: PowerShell: Automating IT Administration

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Monitoring and retrieving results of background jobs

Monitoring and retrieving results of background jobs - PowerShell Tutorial

From the course: PowerShell: Automating IT Administration

Monitoring and retrieving results of background jobs

- [Instructor] So we just touched on creating jobs, managing jobs, removing them, and then we touched on a little bit about this idea of receiving information from a background job. So let's just recap a little bit here. If I take this command and say start the job and then I'm going to say receive job, we'll start to get information about the specific job. You can see it's still running so I could still go back and say receive job information and it's still loading, and then eventually it will finish as it gets all the values back, and sure enough, it's now completed. So if I say get job, there you can see it's all completed and I have no more information to retrieve. Now the interesting thing is once the job completes how do I get information about each job? Well, what about if we did what we expect to do? So I can say get job and then receive job. Notice, nothing returns. I don't get anything because the information…

Contents