File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ function SetupScript([string]$setup_type) {
162162 $arguments = " -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File `" $dest_script_path `" "
163163 $action = New-ScheduledTaskAction - Execute ' Powershell.exe' - Argument $arguments
164164 $settings = New-ScheduledTaskSettingsSet - ExecutionTimeLimit (New-TimeSpan - Minutes 5 ) - RestartCount 3 - RestartInterval (New-TimeSpan - Minutes 1 )
165- $trigger = New-ScheduledTaskTrigger - Once - At (Get-Date ) - RepetitionInterval (New-TimeSpan - Minutes 5 )
165+ $trigger = New-ScheduledTaskTrigger - Once - At (Get-Date ) - RepetitionInterval (New-TimeSpan - Minutes 1 )
166166 $task = Get-ScheduledTask - TaskName $taskname - ErrorAction SilentlyContinue
167167 if ($null -ne $task ) {
168168 Write-Output " Task $taskname already exists. Deleting it."
You can’t perform that action at this time.
0 commit comments