-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win_update not showing stable .net update when suppressing Preview updates #407
Comments
I'll have to try to create a reproducer to see if it's possible to search again if an update was filtered. Right now we just do 1 search pass and then filter it based on the results. Trying to then see if more updates are available if certain ones are filtered should be possible but not something I've tried before so might take some time before I get around to it sorry. |
Do you happen to know of a good way to force Windows to scan for updates and display them in the GUI but not install them. I've configured the local policy to notify for download and install and then tried running things like: wuauclt /startscan
usoclient StartScan
(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()
$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$searcher.Search("IsInstalled = 0") While the last one does give updates it doesn't get reflected in the settings UI which still say no updates are available at this time. I'm going to keep this VM turned on for a few hours and hopefully it does the detection during this period but knowing how to kick if off in an adhoc fashion will definitely help. |
I have not figured out how to do that either. Sometimes when installing updates with Ansible i see similar but oposite behavior. Updates are installed but after all reboots are done with Ansible, The GUI still thinks the updates need to be applied. I don't recall if history in the GUI shows them installed or not. If you were to then install those updates through the GUI, the system realizes they are already installed and doesn't seem to install them and removes them from the list and does show them as updated in the history. |
SUMMARY
The goal that I have is to suppress Preview updates but in doing so, It hides stable version of the same update.
ISSUE TYPE
COMPONENT NAME
win_update
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Rocky Linux 9.0 (RHEL 9) fully updated as of 2022-09-05
Using OS provided packages for Ansible with a pip installed pywinrm (not available from the OS as RPM).
STEPS TO REPRODUCE
reject_list:
EXPECTED RESULTS
Filtering of the Preview should allow the stable .net version to be offered for update.
ACTUAL RESULTS
Output from -vvv for win_update showing that only the Preview is seen (but correctly filtered). Not offering the stable update that is also needed though.
Output from the Windows GUI is in the attached screenshot.
I am pretty sure I understand why this is happening. The Preview is a newer update so Ansible doesn't get the stable version of the update from the windows update api. I am hoping there is a solution so that the reject_list can be given to the windows update api so that any stable version of updates can still be offered. Maybe provide that as an optional thing because it might cause the reject_list'd updates to not be seen as filtered. That might be ok for things like Preview stuff though so maybe it wouldn't be a big deal. The current way it works though, you can miss some updates using reject_list if there is a preview update that supersedes a stable update.
The text was updated successfully, but these errors were encountered: