3 Scheduling automation scripts

This chapter covers

  • How to schedule scripts
  • Considerations for scheduled scripts
  • Creating continuously running scripts

When starting their PowerShell automation journey, one of the first things everyone wants to learn about is scheduling scripts to run unattended. In this chapter, you will learn more than just how to schedule a script. You will also learn some best practices, using common real-world scenarios that will help to ensure your scheduled scripts run smoothly. The concepts and practices used in these examples can be applied to any script you need to schedule.

It is tempting to say that you can take any existing PowerShell script and schedule it with a job scheduler, but that is only part of the solution. ...

Get Practical Automation with PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.