microsoft / MSLab

Azure Stack HCI, Windows 10 and Windows Server rapid lab deployment scripts
MIT License
1.18k stars 285 forks source link

DownloadLatestCUs.ps1 no longer works for me #434

Closed GeriOnline closed 3 years ago

GeriOnline commented 3 years ago

I just started a new project with the re-branded MSLab (v21.02.5). I tried to download the latest CUs with DownloadLatestCUs.ps1 however I cannot get the .MSU files. While debugging the script, I noticed that in line 49

> $latestCU=Get-LatestCumulativeUpdate -OperatingSystem Windows10 -Version $Version | Where-Object -Property Note -Like "Windows 10x64*" | Select-Object -First 1 #1903 has 2 objects

a NULL value is returned to $latestCU regardless of which Windows version I have selected in the outgrid. And of course then no CUs can be downloaded.

As far as I can remember there have been no problems with previous projects to run the script. Do you have any idea what goes wrong?

jaromirk commented 3 years ago

Hi, looks like Get-LatestCumulativeUpdate simply stopped working. Project is archived. I guess we will need to come up with different way to grab CU/SSU. @machv ideas? I was briefly looking into https://github.com/ryan-jan/MSCatalog

jaromirk commented 3 years ago

Looks like we can use API to search for updates https://api.msrc.microsoft.com/cvrf/v2.0/swagger/index ... here is list of SSUs https://msrc.microsoft.com/update-guide/en-us/vulnerability/ADV990001

jaromirk commented 3 years ago

hmm, we can parse latest KB from here

https://support.microsoft.com/en-us/topic/windows-10-update-history-7dd3071a-3906-fa2c-c342-f7f86728a6e3 and https://support.microsoft.com/en-us/topic/release-notes-for-azure-stack-hci-64c79b7f-d536-015d-b8dd-575f01090efd

this is the code of the web page where we can search for string (Azshci)