From the course: PowerShell: Automating Administration

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Background jobs and scheduled jobs

Background jobs and scheduled jobs - Server Tutorial

From the course: PowerShell: Automating Administration

Start my 1-month free trial

Background jobs and scheduled jobs

- [Instructor] Throughout this course, we've explored PowerShell expressions and features that allow you to accomplish a great deal by running a single script or script block. The last part of this course on automated administration through PowerShell is making it so these scripts and script blocks can run on their own. To accomplish this, we need to do two things. The first is we need to make sure that our scripts or even simple pipelines of cmdlets can run in the background. Sometimes we create pipelines that need to process a lot of data. I once made an offline command reference using the Get-Command cmdlet and piping the output to a text file. When I run this pipeline at the prompt, it ties up PowerShell for quite awhile. It would be better if it could just run in the background and give me my prompt back. There are other cmdlets that take awhile to run. Many administrators don't take the time to run Update-Help because it takes so long to complete. It gets put off until the time…

Contents