We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85f63a4 commit 729277eCopy full SHA for 729277e
scripts/build-agents/Initialize.ps1
@@ -4,9 +4,7 @@ $ScriptPath = "PSScriptRoot\Daily-Maintenance.ps1"
4
$DailyAt = '03:00'
5
6
# --- Define action (run as SYSTEM) ---
7
-$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument @(
8
- '-NoProfile','-ExecutionPolicy','Bypass','-File', $ScriptPath
9
-)
+$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -ExecutionPolicy Bypass -File $ScriptPath"
10
11
# --- Triggers: at startup + daily ---
12
$startupTrigger = New-ScheduledTaskTrigger -AtStartup
0 commit comments