kbupdate
kbupdate copied to clipboard
Not able to download Windows 11 22H2 data
Hello all,
I am not able to download patches details using kbupdate module using the following command for eg "Get-KbUpdate -Name KB5030219", basically all "Windows11 22H2" Microsoft products. __ Please suggest how to fetch this information, as I am always missing patches details for Windows11 22H2.
Thanks in Advance
I seem to have this same issue, also with some Windows 2022 KBs. Has there been a work-around or fix posted?
the main issue is that MS changed the download links in the dialog. There is no longer a download.windowsupdate link in the dialog for Win 11, it is catalog.sf.dl.delivery.mp.microsoft.com.
Changing this line in Get-KBUpdate seems to work for me for Win 11 $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.download.windowsupdate.com/[^'""])" | Select-Object -Unique $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.catalog.sf.dl.delivery.mp.microsoft.com/[^'""])" | Select-Object -Unique
Edit C:\Program Files\WindowsPowerShell\Modules\kbupdate\2.0.27\public\Get-KbUpdate.ps1 add if statement after line 693 $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.download.windowsupdate.com/[^'""])" | Select-Object -Unique if (-not $links) { $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.catalog.sf.dl.delivery.mp.microsoft.com/[^'""])" | Select-Object -Unique } `
Just tested the changes of @BWarmuskerken and can confirm it's finding info and links now - marvelous, indeed!
I am by no means an expert, where does the change fail for you?
On May 10, 2024 2:12 PM EDT tayzer522 ***@***.***> wrote:
Â
Â
 I'm having this same issue. I've tried to implement @BWarmuskerken 's fix to no avail. Anyone have any other ideas? This completely breaks one of my automation scripts on a fairly large scale. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I am by no means an expert, where does the change fail for you? On May 10, 2024 2:12 PM EDT tayzer522 @.> wrote:    I'm having this same issue. I've tried to implement @BWarmuskerken 's fix to no avail. Anyone have any other ideas? This completely breaks one of my automation scripts on a fairly large scale. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>
I got it fixed already. I think the issue was with using a cached version
What I found is that even though you may close the ISE, you need to go to taskmanager and kill the powershell processes listed. I stumbled on that for a while too.
Â
Have a good weekend.
On May 10, 2024 3:31 PM EDT tayzer522 ***@***.***> wrote:
Â
Â
Â
I am by no means an expert, where does the change fail for you? On May 10, 2024 2:12 PM EDT tayzer522 @.> wrote:    I'm having this same issue. I've tried to implement @BWarmuskerken 's fix to no avail. Anyone have any other ideas? This completely breaks one of my automation scripts on a fairly large scale. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.>
I got it fixed already. I think the issue was with using a cached version —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Edit C:\Program Files\WindowsPowerShell\Modules\kbupdate\2.0.27\public\Get-KbUpdate.ps1 add if statement after line 693 $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.download.windowsupdate.com/[^'""])" | Select-Object -Unique if (-not $links) { $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.catalog.sf.dl.delivery.mp.microsoft.com/[^'""])" | Select-Object -Unique } `
Anyone was able to get this to work? Can you please submit a commit to get the module updated.
Thanks
Anyone was able to get this to work? Can you please submit a commit to get the module updated.
Thanks Since it works here on different machines, i took the liberty to craete my first pull request, hope i did correctly ;).