ScheduledJobTrigger Class
Updated: April 27, 2016
Applies To: Windows PowerShell
Contains information that is used to define how and when a PowerShell job is run by Windows Task Scheduler (WTS). This class cannot be inherited. Introduced in Windows PowerShell 3.0.
Assembly: Microsoft.PowerShell.ScheduledJob (in Microsoft.PowerShell.ScheduledJob.dll)
| Name | Description | |
|---|---|---|
![]() | ScheduledJobTrigger() | Initializes a new instance of the ScheduledJobTrigger class. Introduced in Windows PowerShell 3.0. |
| Name | Description | |
|---|---|---|
![]() | At | Gets or sets the time to activate the trigger. Introduced in Windows PowerShell 3.0. |
![]() | DaysOfWeek | Gets or sets the days of the week to activate the trigger. Introduced in Windows PowerShell 3.0. |
![]() | Enabled | Gets or sets a value that indicates whether to enable the trigger. Introduced in Windows PowerShell 3.0. |
![]() | Frequency | |
![]() | Id | Gets or sets the local identifier of the trigger. Introduced in Windows PowerShell 3.0. |
![]() | Interval | Gets or sets the interval (number of days or weeks) between trigger activations. Introduced in Windows PowerShell 3.0. |
![]() | JobDefinition | Gets or sets the scheduled job definition that the trigger is associated with. Introduced in Windows PowerShell 3.0. |
![]() | RandomDelay | Gets or sets the maximum time of the random delay that can occur after the scheduled start time. Introduced in Windows PowerShell 3.0. |
![]() | RepetitionDuration | Gets or sets how long the repetition pattern is repeated. Introduced in Windows PowerShell 3.0. |
![]() | RepetitionInterval | Gets or sets the amount of time between each restart of the job. Introduced in Windows PowerShell 3.0. |
![]() | User | Gets or sets the user name that the trigger is associated with. Introduced in Windows PowerShell 3.0. |
| Name | Description | |
|---|---|---|
![]() ![]() | CreateAtLogOnTrigger(String, TimeSpan, Int32, Boolean) | Creates a trigger that activates after user logon. Introduced in Windows PowerShell 3.0. |
![]() ![]() | CreateAtStartupTrigger(TimeSpan, Int32, Boolean) | Creates a trigger that activates after the operation system restarts. Introduced in Windows PowerShell 3.0. |
![]() ![]() | CreateDailyTrigger(DateTime, Int32, TimeSpan, Int32, Boolean) | Creates a trigger that activates on certain days. Introduced in Windows PowerShell 3.0. |
![]() ![]() | CreateOnceTrigger(DateTime, TimeSpan, Nullable<TimeSpan>, Nullable<TimeSpan>, Int32, Boolean) | Creates a trigger that activates one time. Introduced in Windows PowerShell 3.0. |
![]() ![]() | CreateWeeklyTrigger(DateTime, Int32, IEnumerable<DayOfWeek>, TimeSpan, Int32, Boolean) | Creates a trigger that activates on during certain weeks. Introduced in Windows PowerShell 3.0. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo, StreamingContext) | Populates an object with the data needed to serialize the scheduled job trigger. Introduced in Windows PowerShell 3.0. |
![]() | GetType() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
![]() | UpdateJobDefinition() | Update the associated scheduled job definition with the current properties of the scheduled job trigger. Introduced in Windows PowerShell 3.0. |
This class can be serialized.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


