Skip to content

Commit edecdf4

Browse files
committed
Sample in readme updated
1 parent 473641a commit edecdf4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,9 @@ configuration Sample_xScheduledTask
429429
TaskName = "Custom maintenance tasks"
430430
ActionExecutable = "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
431431
ActionArguments = "-File `"C:\scripts\my custom script.ps1`""
432-
ScheduleType = "Minutes"
433-
RepeatInterval = 15
432+
ScheduleType = 'Once'
433+
RepeatInterval = [datetime]::TOday.AddMinutes(15)
434+
RepetitionDuration = [datetime]::TOday.AddHours(10)
434435
}
435436
}
436437
}

0 commit comments

Comments
 (0)