DSC Resource for creating and configuring Scheduled Jobs on Windows Server. This module aims to implement most of the options made available by the PSScheduledJob module; the RunEvery and RunNow parameters for Register-ScheduledJob cannot be implemented, as they simply create triggers that can't be distinguished from triggers created with the Trigger parameter.
This module has not yet achieved minimal viable functionality. Do not use it, yet.
cScheduledJob represents a single scheduled job.
Name of the scheduled job. Names must be unique on a single computer.
Indicates whether the scheduled job should be present or absent.
Path to a PowerShell file for this job to run. Each cScheduledJob must have one FilePath OR one ScriptBlock.
PowerShell scriptblock for this job to run. Each cScheduledJob must have one FilePath OR one ScriptBlock.
Specifies whether this job is enabled or not.
Hashtable containing arguments to pass to the script. This is equivalent to the Register-ScheduledJob's ArgumentList parameter, but ArgumentList is not a valid name for a DSC property.
Method used to authenticate credentials.
Credential to run the job under.
Script to initialize the session before running the primary script. If the initialization script generates any kind of error, the primary script will not be run.
The number of job results that are retained for this job.
Specifies whether to run this job in a 32-bit process.
Specifies whether to continue the job if the computer switches to battery power.
Start the job only when it is triggered. Users cannot start the job manually.
Do not display the job in Task Scheduler.
Specifies how long the computer must be idle before the job starts.
Specifies how long the scheduled job waits.
Determines how the system responds to a request to start an instance of the job while another instances is running.
Runs the job only when network connections are available.
Restarts a job when the computer becomes idle.
Run the job as an administrator.
Only start the job if the computer has been idle for the period specified in IdleDuration.
Allow the job to start if the computer is running on battery.
Suspend the running job if the computer becomes active.
Wake the computer to run the job.
Specifies one or more triggers for this job.