foam_sync.ps1 (LIFEBALANCE) 2025-06-19T14:27:40Z
This commit is contained in:
@ -29,7 +29,8 @@ try {
|
||||
|
||||
# Run as the user who executes this script.
|
||||
$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
|
||||
|
||||
# Task settings
|
||||
|
||||
Reference in New Issue
Block a user