Skip to content
Snippets Groups Projects
Commit 7db71b1a authored by Andreas Lindemark's avatar Andreas Lindemark
Browse files

Removed -Delay from $StartOnStartup

parent 8f8869c4
No related branches found
No related tags found
No related merge requests found
......@@ -52,11 +52,7 @@ function New-CustomScheduledTask {
# Create the triggers
$triggers = @()
if ($StartOnStartup) {
if ($StartupDelay) {
$triggers += New-ScheduledTaskTrigger -AtStartup -Delay "00:05:00"
} else {
$triggers += New-ScheduledTaskTrigger -AtStartup
}
}
if ($DailyTimes.Count -gt 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment