diff --git a/Ninjacrab.PersistentWindows.Solution/auto_start_pw_aux.ps1 b/Ninjacrab.PersistentWindows.Solution/auto_start_pw_aux.ps1 index 8222d11..47a8fc6 100644 --- a/Ninjacrab.PersistentWindows.Solution/auto_start_pw_aux.ps1 +++ b/Ninjacrab.PersistentWindows.Solution/auto_start_pw_aux.ps1 @@ -17,7 +17,7 @@ if ($existingTask -ne $null) { Unregister-ScheduledTask -TaskName $taskName -Confirm:$false } -$action = New-ScheduledTaskAction -Execute $executablePath +$action = New-ScheduledTaskAction -Execute `"$executablePath`" $trigger = New-ScheduledTaskTrigger -AtLogOn -User $env:username ## set PW process priority to below normal