mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 06:55:52 +03:00
[GH-ISSUE #2433] [Bug / Feature Request] Windows agents report Patches superseded and Patches Pending mark while really uptodate and no patches available #3431
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#3431
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rabsym on GitHub (Mar 9, 2026).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2433
Server Info:
Installation Method:
Agent Info:
Describe the bug
Not sure if a bug or by design but when RMM server updates agent's patch list to check for what to update and what's installed using API (https://docs.microsoft.com/en-us/windows/win32/api/_wua/) it don't take into account that updates could be superseded by newer patch versions/revisions and it shows superseded as missing resulting in client being also marked as "Patches Pending" as showed in the following capture.
The used windows API have the ability to decide whether to include or not superseded updates, ideally offering user the choice of enabling/disabling.
These are the API functions for doing it:
get_IncludePotentiallySupersededUpdates Gets and sets a Boolean value that indicates whether the search results include updates that are superseded by other updates in the search results. (Put)
put_IncludePotentiallySupersededUpdates Gets and sets a Boolean value that indicates whether the search results include updates that are superseded by other updates in the search results. (Get)
To Reproduce
Steps to reproduce the behavior:
Workaround
Looks like IncludePotentiallySupersededUpdates = True when using updateSearcher so when polling for updates they get included.
So maybe something like this could do the job:
Set updateSearcher = updateSession.CreateUpdateSearcher()
updateSearcher.IncludePotentiallySupersededUpdates = False
Maybe even using a parameter for enabling/disabling this but anyway not understand why default to show superseded.
@rabsym commented on GitHub (Mar 9, 2026):
Perhaps interested in a PR?
Code Location
Found the issue in
wua_windows.goin theGetWUAUpdateCollectionfunction.File:
wua_windows.goFunction:
GetWUAUpdateCollectionCurrent code:
Proposed fix:
Reference:
https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nf-wuapi-iupdatesearcher-put_includepotentiallysupersededupdates