You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_ScheduledTask/DSC_ScheduledTask.schema.mof
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ class DSC_ScheduledTask : OMI_BaseResource
9
9
[Write, Description("The working path to specify for the executable.")] string ActionWorkingPath;
10
10
[Write, Description("When should the task be executed."), ValueMap{"Once", "Daily", "Weekly", "AtStartup", "AtLogon", "OnIdle", "OnEvent", "AtCreation", "OnSessionState"}, Values{"Once", "Daily", "Weekly", "AtStartup", "AtLogon", "OnIdle", "OnEvent", "AtCreation", "OnSessionState"}] string ScheduleType;
11
11
[Write, Description("How many units (minutes, hours, days) between each run of this task?")] String RepeatInterval;
12
-
[Write, Description("The time of day this task should start at, or activate on- defaults to 12:00 AM.")] DateTime StartTime;
12
+
[Write, Description("The date and time of day this task should start at, or activate on, represented as a string for local conversion to DateTime format - defaults to 1st January 1980 at 12:00 AM.")] String StartTime;
13
13
[Write, Description("Enable the scheduled task option to synchronize across time zones. This is enabled by including the timezone offset in the scheduled task trigger. Defaults to false which does not include the timezone offset.")] boolean SynchronizeAcrossTimeZone;
14
14
[Write, Description("Present if the task should exist, Absent if it should be removed."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] string Ensure;
15
15
[Write, Description("True if the task should be enabled, false if it should be disabled.")] boolean Enable;
Copy file name to clipboardExpand all lines: source/DSCResources/DSC_ScheduledTask/en-US/DSC_ScheduledTask.strings.psd1
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ ConvertFrom-StringData @'
13
13
OnEventSubscriptionError = No (valid) XML Event Subscription was provided. This is required when the scheduletype is OnEvent.
14
14
OnSessionStateChangeError = No kind of session state change was provided. This is required when the scheduletype is OnSessionState.
15
15
gMSAandCredentialError = Both ExecuteAsGMSA and (ExecuteAsCredential or BuiltInAccount) parameters have been specified. A task can run as a gMSA (Group Managed Service Account), a builtin service account or as a custom credential. Please modify your configuration to include just one of the three options.
16
-
SynchronizeAcrossTimeZoneInvalidScheduleType = Setting SynchronizeAcrossTimeZone to true when the ScheduleType is not Once, Daily or Weekly is not a valid configuration. Please keep the default value of false when using other schedule types.
17
16
TriggerCreationError = Error creating new scheduled task trigger.
Copy file name to clipboardExpand all lines: source/Examples/Resources/ScheduledTask/15-ScheduledTask_CreateScheduledTaskOnceSynchronizeAcrossTimeZoneEnabled_Config.ps1
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,8 @@
20
20
<#
21
21
.DESCRIPTION
22
22
This example creates a scheduled task called 'Test task sync across time zone enabled'
23
-
in the folder 'MyTasks' that starts a new powershell process once at 2018-10-01 01:00.
24
-
The task will have the option Synchronize across time zone enabled.
23
+
in the folder 'MyTasks' that starts a new powershell process once at 2018-10-01 01:00
24
+
in the -08:00 timezone. The task will have the option Synchronize across time zone enabled.
0 commit comments