foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:15:16Z

This commit is contained in:
Ben Miller
2025-06-19 14:15:16 -06:00
parent 9cda4ed47d
commit 1b9ff5334f

View File

@ -11,7 +11,8 @@ $scriptName = (Get-Item $scriptPath).Name
# --- Task Setup ---
$taskName = 'FoamGitSync'
$taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName."
$fullCommand = "c:\windows\system"
$fullCommand = "c:\windows\system32\conhost.exe --headless powershell.exe -WindowStyle Hidden -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $scriptPath"
$executeCommand = $fullCommand.Split(" ")[0]
$frequencyMinutes = 2
$timeLimitSeconds = 30