Skip to main content

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 ActionServer AddressCheck TypeExecute InfoComparatorInterval
System127.0.0.1Run FileREDACTEDState Based86400

The monitor executes a PowerShell command that:

  1. Checks for the existence of C:\ProgramData\_Automation\Script\Winget-AutoUpdate\Winget-UpdateApproved-error.txt.
  2. If the file exists, retrieves its LastWriteTime and full content.
  3. 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.log file.

2025-04-10

  • Initial version of the document