foam_sync.ps1 (LIFEBALANCE) 2025-06-18T23:59:21Z

This commit is contained in:
Ben Miller
2025-06-18 23:59:21 -06:00
parent da806e9c62
commit 642cf06a79

View File

@ -47,7 +47,7 @@ $taskName = "FoamGitSync"
$taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName." $taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName."
# Run as the user who executes this script. # Run as the user who executes this script.
$taskPrincipal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType InteractiveOrPassword $taskPrincipal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive
# Trigger configuration # Trigger configuration
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes $frequencyMinutes) $trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes $frequencyMinutes)