Fixed user run from system task

pull/176/head
romanitho 2022-10-08 03:01:32 +02:00
parent e6dcb70a58
commit 31732404f6
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ if ($IsSystem) {
$UserScheduledTask = Get-ScheduledTask -TaskName "Winget-AutoUpdate-UserContext" -ErrorAction SilentlyContinue $UserScheduledTask = Get-ScheduledTask -TaskName "Winget-AutoUpdate-UserContext" -ErrorAction SilentlyContinue
if ($UserScheduledTask){ if ($UserScheduledTask){
Write-Log "Starting WAU in User context" Write-Log "Starting WAU in User context"
Start-ScheduledTask $UserScheduledTask -ErrorAction SilentlyContinue Start-ScheduledTask $UserScheduledTask.TaskName -ErrorAction SilentlyContinue
Exit 0 Exit 0
} }
else { else {