Winget Auto Update Errors
Summary
The remote monitor is created by the Configure Winget Auto Update script only for computers where the Winget Auto Update solution is enabled and the client‑level EDF WAU - MonitorFailures is flagged.
The monitor checks for the presence of the update runtime error log at
C:\ProgramData\_Automation\Script\Winget-AutoUpdate\Winget-UpdateApproved-error.txt.
This log file is generated by the Winget‑UpdateApproved runtime whenever an application update fails. The runtime clears this file at the start of each execution, so the mere existence of the file indicates that the most recent run encountered an error.
The monitor reads the file’s last write time and its contents. No scheduled task or time‑comparison logic is required.
If the error log is present, the monitor returns the failure details and triggers an alert.
The remote monitor is created with the △ Custom - Ticket Creation - Computer alert template if available; otherwise, the Default - Create Automate Ticket template is used.
Details
Suggested Alert Style: Once
Suggested Alert Template: △ Custom - Ticket Creation - Computer
| Check Action | Server Address | Check Type | Execute Info | Comparator | Interval |
|---|---|---|---|---|---|
| System | 127.0.0.1 | Run File | REDACTED | State Based | 86400 |
The monitor executes a PowerShell command that:
- Checks for the existence of
C:\ProgramData\_Automation\Script\Winget-AutoUpdate\Winget-UpdateApproved-error.txt. - If the file exists, retrieves its
LastWriteTimeand full content. - Returns a formatted output containing the failure time and error details.
Dependencies
Target
Local Machine
Ticketing
Subject: Winget Auto Update Errors Detected on %ComputerName%
Body:
Winget Auto Update Errors detected on %ComputerName%. Failure details:
<Failure Reason>
Changelog
2026-07-01
- Updated the monitored error log path to
C:\ProgramData\_Automation\Script\Winget-AutoUpdate\Winget-UpdateApproved-error.txt. - Simplified the detection logic: the monitor now only checks for the file’s existence and reads its content, without comparing against scheduled task run times.
- No longer depends on the legacy
Winget-AutoUpdate\logs\error.logfile.
2025-04-10
- Initial version of the document