Job scheduling (Intermediate)
With the release of Windows PowerShell Version 3.0, there is one dedicated module introduced for PowerShell job scheduling named PSScheduledJob
.
Getting ready
With the concept of scheduled jobs, we have the freedom to operate the data and operations as and when required. We don't need manual interaction too. PSScheduledJob
refers to an instance of a scheduled job that is started by a job trigger. There are a bunch of CMDLETs available with this module as shown:
PS C :\> Get-Command -Module PSScheduledJob CommandType Name ModuleName ----------- ---- ---------- Cmdlet Add-JobTrigger PSScheduledJob Cmdlet Disable-JobTrigger PSScheduledJob Cmdlet Disable-ScheduledJob PSScheduledJob Cmdlet Enable-JobTrigger PSScheduledJob ...
Get Instant Windows PowerShell Guide 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.