Skip to content

Commit 729277e

Browse files
committed
Fixed Initialize.ps1
1 parent 85f63a4 commit 729277e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/build-agents/Initialize.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ $ScriptPath = "PSScriptRoot\Daily-Maintenance.ps1"
44
$DailyAt = '03:00'
55

66
# --- Define action (run as SYSTEM) ---
7-
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument @(
8-
'-NoProfile','-ExecutionPolicy','Bypass','-File', $ScriptPath
9-
)
7+
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -ExecutionPolicy Bypass -File $ScriptPath"
108

119
# --- Triggers: at startup + daily ---
1210
$startupTrigger = New-ScheduledTaskTrigger -AtStartup

0 commit comments

Comments
 (0)