From e42a8cedaabde1df31023d311e62b28ab6aa025e Mon Sep 17 00:00:00 2001 From: romanitho <96626929+Romanitho@users.noreply.github.com> Date: Thu, 5 Oct 2023 23:41:07 +0200 Subject: [PATCH] last adjustment --- Winget-AutoUpdate/Winget-Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Winget-AutoUpdate/Winget-Upgrade.ps1 index 5ef5bf6..28f1daa 100644 --- a/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -323,7 +323,7 @@ if (Test-Network) { #Run user context scheduled task Write-ToLog "Starting WAU in User context..." - Start-ScheduledTask $UserScheduledTask.TaskName -ErrorAction SilentlyContinue + Get-ScheduledTask -TaskName "Winget-AutoUpdate-UserContext" -ErrorAction SilentlyContinue | Start-ScheduledTask -ErrorAction SilentlyContinue Exit 0 } }