Skip to content

[Bug]: Winget-AutoUpdate-Policies schedule task does not run due to a path issue #111

@ipittam2026

Description

@ipittam2026

The problem

I installed this app via Intune on my PC.
I noticed that the Winget-AutoUpdate-Policies schedule task had a Last Run Result listed as (0xFFFD0000).
After checking the details I could see that the path was missing a backslash before the name of the ps1 file to run, as follows:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Winget-Autoupdate-aaS\Winget-AutoupdateWAU-Policies.ps1"

I added the missing backslash so that the command is as follows:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File "C:\Program Files\Winget-Autoupdate-aaS\Winget-Autoupdate\WAU-Policies.ps1"

and the task runs normally.

Maybe a issue in the installation script?

Thanks
Ian

What version of WAU has the issue?

Latest version downloaded from Microsoft Store 2 weeks ago.

What version of Windows are you using (ex. Windows 11 22H2)?

Windows 11 24H2

What version of winget are you using?

Windows Package Manager v1.28.190

Log information

Additional information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions