I'm trying to find a PowerShell module that can help me get the download URL for a specific Windows update. I've used kbupdate, which works for Windows 10, but it doesn't fetch Windows 11 update details. I've also attempted to use the MScatalog module, but it gets stuck at a prompt asking me to enter 'A' for downloading multiple files.
Currently, I have a script running on Windows 10 that fetches the latest cumulative update using MScatalog, and then it retrieves further details via kbupdate, mainly focusing on the download URL. The script checks if the update is present, installs it, and cleans up afterward. I'm steering clear of PS-windowsupdate because it relies on COM objects and device update databases, which I've encountered numerous issues with.
I'm looking for any suggestions or workarounds, or any help you might be able to provide. Specifically, I need a PowerShell script or module that extracts the download URL for the 2025-04 cumulative updates for Windows 11, version 23H2 for x64-based systems.
5 Answers
For downloading particular KBs, just remember that the URL format is mostly the same, using the base URL with the KB number appended. So, if you search for 'MS kb123456,' you should be able to construct the download URL easily. It might take some trial and error for your specific OS version, though.
I mix various scripts to download directly from the Microsoft catalog since the URLs changed recently. Here’s a snippet from a larger script I pulled together: https://pastebin.com/LdPwXQLV. Use it at your discretion!
I built my own module for this purpose, but I hardly use it these days. Let me see if I can dig it up for you!
That would be amazing, thanks! I'd love to try it out.
Have you considered reaching out to the kbupdate module authors about the issue you're having? It might help since there are known issues with it already.
I have; I reported it, and there are open issues regarding the same.
You might find this script helpful for figuring out how to get URLs for specific cumulative updates: https://github.com/microsoft/MSLab/blob/master/Tools/DownloadLatestCUs.ps1
I tried it, and it prompts for the path to download. Did you confirm that Save-Mscatalog works? Because every time I enter 'A' to download multiple files, it does nothing.
Thanks, that makes sense! I’ll try it, but it's a bit urgent, so I'll get back to you after resolving this.