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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Understanding PowerShell background jobs3m 50s
-
(Locked)
Creating and managing background jobs9m 56s
-
(Locked)
Monitoring and retrieving results of background jobs12m 3s
-
(Locked)
Automating administrative tasks with scheduled jobs8m 56s
-
(Locked)
Creating scheduled tasks within Windows22m 45s
-
(Locked)
-