From f51a827fae5318b2ec2e12de88508773a8cefcd1 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Wed, 18 Jun 2025 23:57:41 -0600 Subject: [PATCH] foam_sync.ps1 (LIFEBALANCE) 2025-06-18T23:57:41Z --- foam_sync.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 12c42e5..ca4903f 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -56,8 +56,7 @@ $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (Ne $action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-NoProfile -NonInteractive -ExecutionPolicy Bypass -File `"$scriptPath`"" # Task settings -$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -ExecutionTimeLimit (New-TimeSpan -Hours 1) ` - -StopIfGoingOnBatteries:$false # Explicitly ensure it doesn't stop +$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit (New-TimeSpan -Minutes 1) # Check and configure the scheduled task try {