You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed while reading the code within winupdate.go that there are two private functions. One for listing updates and another for update history. It would be quite useful to be able to access this type of information through some public functions.
I don't think that it would be difficult to add a public version of listUpdates() that provided the output using the struct already existing in the shared folder. updateHistory() based on my review could potentially just be made public with no changes.
I would ask that there is some consideration for making the information that those two functions provide accessible outside UpdatesPending() if possible.
Its also possible that I am misunderstanding the code in some way, so if it is already possible to access this data through UpdatesPending() please advise me so I can attempt to access this information for a project of mine.
The text was updated successfully, but these errors were encountered:
Sorry guys I hadn’t seen the notification for this…
I really struggled to implement anything useful in the Windows Update space, especially that is compatible with Windows 10/11
There are some PowerShell utils that I tried to decompile & replicate but on further testing, none of those really worked like I expected either..
It’s been a while but in the end we came to the conclusion that the GUI is the source of truth & none of the CLI tools or libs have a good way to access the data.
I’m happy to take advice on this if anyone has any?
In this there is Win32_Patch, Win32_PatchFile and Win32_PatchPackage. I don't know but these might be helpful to figure out if there are any updates available. Not for all applications for at least for the operating system itself.
I noticed while reading the code within
winupdate.go
that there are two private functions. One for listing updates and another for update history. It would be quite useful to be able to access this type of information through some public functions.I don't think that it would be difficult to add a public version of
listUpdates()
that provided the output using the struct already existing in the shared folder.updateHistory()
based on my review could potentially just be made public with no changes.I would ask that there is some consideration for making the information that those two functions provide accessible outside
UpdatesPending()
if possible.Its also possible that I am misunderstanding the code in some way, so if it is already possible to access this data through
UpdatesPending()
please advise me so I can attempt to access this information for a project of mine.The text was updated successfully, but these errors were encountered: