1

I create a Task Scheduler Job using PowerShell. Using GUI there is a "advanced settings" with an option "delay task for:". I need it for a Scheduler "at startup". Using PowerShell there is the parameter "RandomDelay", but it's not the same? My code:

$triggers = @()
$triggers += New-ScheduledTaskTrigger -AtStartUp -RandomDelay "00:00:30"
$triggers += New-SchedulerTaskTrigger -Daily -At "00:00" -RandomDelay "00:00:30"

RandomDelay for 30 sec. will be created for the daily Scheduler, but not for the "startup".

Purclot
  • 483
  • 7
  • 22

0 Answers0