Chapter 11. Background jobs and scheduling

This chapter covers

  • Creating jobs
  • Retrieving job results
  • Managing the job queue
  • Using scheduled jobs

In PowerShell, jobs are one of the many extension points provided to the shell for developers to build on. Jobs allow you to run tasks asynchronously—you get the prompt back to continue working while PowerShell runs the job in the background. PowerShell v3 defines three broad but distinct types of jobs: those based on the Remoting architecture covered in the previous chapter (also known as background jobs), those based on WMI and CIM, and those based on a new “scheduled job” architecture. Each of these jobs works slightly differently, but all of them represent the same essential thing: a unit ...

Get PowerShell in Depth now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.