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

Not able to download Windows 11 22H2 data #226

Open
shrishti01 opened this issue Sep 20, 2023 · 16 comments
Open

Not able to download Windows 11 22H2 data #226

shrishti01 opened this issue Sep 20, 2023 · 16 comments

Comments

@shrishti01
Copy link

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

@BWarmuskerken
Copy link

I seem to have this same issue, also with some Windows 2022 KBs. Has there been a work-around or fix posted?

@BWarmuskerken
Copy link

BWarmuskerken commented Feb 18, 2024

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

@BWarmuskerken
Copy link

BWarmuskerken commented Feb 19, 2024

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
}
`

@mae1cum77
Copy link

mae1cum77 commented Mar 6, 2024

Just tested the changes of @BWarmuskerken and can confirm it's finding info and links now - marvelous, indeed!

@BWarmuskerken
Copy link

BWarmuskerken commented May 10, 2024 via email

@tayzer522
Copy link

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

@BWarmuskerken
Copy link

BWarmuskerken commented May 10, 2024 via email

@ZJPat
Copy link

ZJPat commented Jul 9, 2024

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

@mae1cum77
Copy link

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 ;).

@mrmattipants
Copy link

mrmattipants commented Aug 17, 2024

I had to replace the dot, with a dot plus an asterisk, in the RegEx for .catalog.sf.dl.delivery.mp.microsoft.com/, as follows.

$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
}

@mrmattipants
Copy link

i suppose you could also remove the dot, altogether ;)

@endi-ellis
Copy link

working off what you guys added to Get-KBUpdate:
I wasn't able to grab 1809 KBs anymore, but everything is working so far (including win11) after changing $links to:
$links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.download.windowsupdate.com/[^\'\""])|(http[s]?://.*catalog.sf.dl.delivery.mp.microsoft.com/[^\'""])" | Select-Object -Unique

@mae1cum77
Copy link

my working solution, slightly adapted from the above one:

$links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.*download\.windowsupdate\.com\/[^\'\""])|(http[s]?://.*catalog\.sf\.dl\.delivery\.mp\.microsoft\.com\/[^\'\""]*)" | Select-Object -Unique

so far it got last updates for 24H2 aka KB5044284 correctly ... let's see.

@jbthomas1975
Copy link

I used $links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.(download.windowsupdate.com|catalog.sf.dl.delivery.mp.microsoft.com)/[^\'\""])" | Select-Object -Unique

@endi-ellis
Copy link

my working solution, slightly adapted from the above one:

$links = $downloaddialog | Select-String -AllMatches -Pattern "(http[s]?://.*download\.windowsupdate\.com\/[^\'\""])|(http[s]?://.*catalog\.sf\.dl\.delivery\.mp\.microsoft\.com\/[^\'\""]*)" | Select-Object -Unique

so far it got last updates for 24H2 aka KB5044284 correctly ... let's see.

With the $links value from my original comment, I was able to get info for the KBs I needed but ran into an issue downloading them. With your $links value, everything works great

@mae1cum77
Copy link

mae1cum77 commented Nov 8, 2024

With your $links value, everything works great

was playing with your code and added some backslashes to match the original line. so far it seems to work. let's see what future might bring up :).

downloaded 2024-11 KB5046617 CU successfully ... still seem sto work ... fine i'd say. brainstorming ideas is always good :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants