diff --git a/foam_sync.ps1 b/foam_sync.ps1 index 7234510..017adf9 100644 --- a/foam_sync.ps1 +++ b/foam_sync.ps1 @@ -47,7 +47,7 @@ $taskName = "FoamGitSync" $taskDescription = "Periodically synchronizes the Git repository at $scriptDir using $scriptName." # 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 = New-ScheduledTaskTrigger -Once -At (Get-Date) -RepetitionInterval (New-TimeSpan -Minutes $frequencyMinutes)