From 1b9ff5334f6d7db6be15627c81180b3891a1bec6 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 19 Jun 2025 14:15:16 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:15:16Z --- foam_sync.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 5de2f4e..82aa721 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -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