foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:27:40Z

This commit is contained in:
Ben Miller
2025-06-19 14:27:40 -06:00
parent 2cd6533e53
commit 0c5101c77d

View File

@ -29,7 +29,8 @@ try {
# Run as the user who executes this script. # Run as the user who executes this script.
$taskPrincipal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive $taskPrincipal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -LogonType Interactive
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval $(New-TimeSpan -Minutes $frequencyMinutes) $repetitionInterval = New-TimeSpan -Minutes $frequencyMinutes
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval $repetitionInterval
$action = New-ScheduledTaskAction -Execute $taskExecute -Argument $taskArguments $action = New-ScheduledTaskAction -Execute $taskExecute -Argument $taskArguments
# Task settings # Task settings