We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 473641a commit edecdf4Copy full SHA for edecdf4
1 file changed
README.md
@@ -429,8 +429,9 @@ configuration Sample_xScheduledTask
429
TaskName = "Custom maintenance tasks"
430
ActionExecutable = "C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe"
431
ActionArguments = "-File `"C:\scripts\my custom script.ps1`""
432
- ScheduleType = "Minutes"
433
- RepeatInterval = 15
+ ScheduleType = 'Once'
+ RepeatInterval = [datetime]::TOday.AddMinutes(15)
434
+ RepetitionDuration = [datetime]::TOday.AddHours(10)
435
}
436
437
0 commit comments