Zum Hauptinhalt springen

Windows Update Troubleshooting

Heute aktualisiert

Einführung

Level uses the Microsoft Windows Update Agent (WUA) API to detect and manage patches. If you're seeing unexpected patch counts, missing updates, or no updates at all, the two most common causes are result-set differences between WUA and other update sources, and leftover WSUS configuration that redirects devices away from Microsoft's update servers.


How Level Queries Windows Updates

Level queries the Microsoft WUA API for both available and installed patches. The WUA API is the same one Windows uses internally, but its results don't match Windows Update History. Don't compare the two directly — they pull from different data stores.

To see exactly what the WUA API returns for a given device, run these commands in PowerShell.

Installed patches:

__PRESERVE_CODE_0__

Pending patches:

__PRESERVE_CODE_1__

If Level's patch list matches what these commands return, Level is working correctly. Any discrepancy lives in the WUA layer itself.


Diagnosing WSUS-Related Issues

If Level shows no available updates and the WUA commands above also return nothing, a leftover WSUS configuration is the likely cause. Devices still pointed at a WSUS server won't query Microsoft's update servers, so Level has nothing to report.

Check for WSUS Configuration

Run this in PowerShell to inspect the Windows Update registry key:

__PRESERVE_CODE_2__

If the output includes references to a WSUS server address, the device hasn't been reconfigured.

Remove WSUS Settings

The correct fix is to reverse the Group Policy Object that originally pushed WSUS to the devices. If that's not possible, the following script removes the WSUS client settings manually:

⚠️ WARNING: Test on a single device before deploying to production. If the GPO that configured WSUS is still active, the settings will return on the next policy refresh. Removing the GPO is the only permanent fix.

PowerShell

__PRESERVE_CODE_3__

After running, Level re-queries WUA on the next sync. Updates from Microsoft's servers should appear at that point.

💡 TIP: Save this as a script in Level's script library to deploy it via automation across multiple devices at once rather than running it manually.


Häufig gestellte Fragen

  • Level shows updates, but Windows Update History says they're already installed. Who's right? Both can be correct. Level queries the WUA API directly; Windows Update History reads from a separate log. The WUA PowerShell commands above are the ground truth for what Level sees. If those commands return the same patches Level is showing, Level is behaving correctly.

  • The WSUS cleanup script ran but devices are still pointing to WSUS. The Group Policy that configured WSUS is likely still active. The script removes the current registry values, but policy re-applies them on the next refresh. Reverse or disable the GPO first.

  • After removing WSUS config, how long until Level shows updates? Level re-queries WUA on the next device check-in cycle. In most cases, updated patch data appears within a few minutes of the device reconnecting or the agent polling.

  • Can I run the WSUS cleanup script across all affected devices at once? Yes. Save it as a script in Automations → Scripts, then run it via an automation targeting the relevant devices or via an ad-hoc run from the device listing.

Hat dies deine Frage beantwortet?