mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-10 20:45:38 +02:00
add double quote to PW path in task scheduler
This commit is contained in:
parent
630c16ac57
commit
3cd5fa930a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue