File tree Expand file tree Collapse file tree
DSCResources/MSFT_xScheduledTask Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -746,7 +746,7 @@ function Set-TargetResource
746746 }
747747
748748 $tempTrigger = New-ScheduledTaskTrigger - Once - At 6 :6 :6 - RepetitionInterval $RepeatInterval.TimeOfDay - RepetitionDuration $RepetitionDuration.TimeOfDay
749- Write-Verbose - Message ' Copying values from temporary trigger to property Repetition of $trigger.Repetition'
749+ Write-Verbose - Message ' PS V5 Copying values from temporary trigger to property Repetition of $trigger.Repetition'
750750
751751 $trigger.Repetition = $tempTrigger.Repetition
752752 }
@@ -772,8 +772,8 @@ function Set-TargetResource
772772 }
773773
774774 $tempTrigger = New-ScheduledTaskTrigger - Once - At 6 :6 :6 - RepetitionInterval $RepeatInterval.TimeOfDay - RepetitionDuration $RepetitionDuration.TimeOfDay
775- $tempTask = New-ScheduledTask - Trigger $temptrigger - Action $action
776- Write-Verbose - Message ' Copying values from temporary trigger to property Repetition of $trigger.Repetition'
775+ $tempTask = New-ScheduledTask - Trigger $tempTrigger - Action $action
776+ Write-Verbose - Message ' PS V4 Copying values from temporary trigger to property Repetition of $trigger.Repetition'
777777
778778 $scheduledTask.Triggers [0 ].Repetition = $tempTask.Triggers [0 ].Repetition
779779 }
You can’t perform that action at this time.
0 commit comments