New
#1
Winget fails to update apps as hidden scheduled task
I'm trying to automate the update of all apps via Winget. I have written the following script:
winget upgrade --all --accept-source-agreements --accept-package-agreements --include-unknown --disable-interactivity --force --silent
I have this script scheduled via Task Scheduler. Runs as the domain admin, runs with highest privileges, runs hidden configured for Windows 10 (actually Win11 but that's not an option in this checkbox), and in the Task section I have "powershell.exe -noprofile -WindowStyle Hidden -ExecutionPolicy Bypass -File path to ps1 file including quotes
Now the problem is that some apps do get updated, but some do not apparently because they throw a UAC prompt, notably Adobe Acrobat Reader DC and Microsoft Edge iirc. So if I run it hidden with highest privileges, these do not pop up but the task scheduler doesn't accept them so press yes on them either, so they fail
Has anybody found a solution to this? Very frustrating