Skip to content
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

Add condition to check for duplicate queued updates #139

Merged
merged 2 commits into from
Dec 17, 2023

Conversation

stuartp44
Copy link
Contributor

@stuartp44 stuartp44 commented Dec 15, 2023

This commit helps the occurence of duplicate Windows Update's getting queued and causing Windows Update to refuse to do windows update work. We add logic to find and skip duplicate Windows Updates.

Orginal PR
This PR detects when an update is attempted to be installed which equal the same update by its title. We do this by comparing what is currently in the install object, using the update title and skip the update it if we find it already in the object. This stops the HRESULT: 0x80240013 which is, as far as I know, when a duplicate update is attempted to be installed at the same time.

Resolves #131

This commit helps the occurence of duplicate Windows Update's getting queued
update/windows-update.ps1 Outdated Show resolved Hide resolved
This PR rewords warning message in accordance to review comments.
@rgl rgl merged commit a95e470 into rgl:master Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants