Skip to content

Instantly share code, notes, and snippets.

<!-- : Begin batch script
@setlocal DisableDelayedExpansion
@echo off
:: change to 1 to use VBScript to access WMI
:: automatically enabled if wmic.exe is not installed
set WMI_VBS=0
:: change to 1 to use Windows PowerShell to access WMI
:: automatically enabled if wmic.exe and VBScript are not installed
set WMI_PS=0
@setlocal DisableDelayedExpansion
@echo off
@cls
set _args=
set _args=%*
if not defined _args goto :NoProgArgs
for %%A in (%_args%) do (
if /i "%%A"=="-wow" set _rel1=1
if /i "%%A"=="-arm" set _rel2=1
)
@abbodi1406
abbodi1406 / GetUpdateID.ps1
Created July 28, 2023 13:03
Get updates' UpdateID from Microsoft Update Catalog
Param(
[parameter(Mandatory)][string]$KBnumber,
[string]$arch,
[string]$vers
)
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Enum]::ToObject([Net.SecurityProtocolType], 3072)
$ProgressPreference = 'SilentlyContinue'
$search = Invoke-WebRequest -Uri ("https://www.catalog.update.microsoft.com/Search.aspx?q={0}" -F $KBnumber) -Headers @{"Accept-Language"="en-US;q=0.8,en;q=0.6"}
$document = $search.ParsedHtml
$table = $document.GetElementById('ctl00_catalogBody_updateMatches')
# Latest available updates for Windows 10 versions 1903/1909 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1903
click on "Last Updated" column to sort by newest update
Update to remove Adobe Flash Player
http://download.windowsupdate.com/c/msdownload/update/software/updt/2020/10/windows10.0-kb4577586-x86_002b1ffa7fb31836aeaed74007a6949d31a96460.msu
# Latest available updates for Windows 10 version 1809 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1809
click on "Last Updated" column to sort by newest update
Update to remove Adobe Flash Player
http://download.windowsupdate.com/d/msdownload/update/software/updt/2020/10/windows10.0-kb4577586-x86_947f151a8bb5a0b0797702e53431c52d56c02c32.msu
# Latest available updates for Windows 10 version 1803 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1803
click on "Last Updated" column to sort by newest update
Update to remove Adobe Flash Player for Pro / Enterprise / Education editions
http://download.windowsupdate.com/d/msdownload/update/software/updt/2020/10/windows10.0-kb4577586-x86_b737ffa841d2aab5cbf5e00560b93577a6d0b4d2.msu
# Latest available updates for Windows 10 version 1709 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1709
click on "Last Updated" column to sort by newest update
Update to remove Adobe Flash Player for Pro / Pro Education / Pro Workstation / Enterprise editions
http://download.windowsupdate.com/c/msdownload/update/software/updt/2020/10/windows10.0-kb4577586-x86_f1ee6a8c9cdc91b4486fde9dc98c9dc5f9babc77.msu
# Latest available updates for Windows 10 version 1703 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1703
click on "Last Updated" column to sort by newest update
Update to remove Adobe Flash Player
http://download.windowsupdate.com/d/msdownload/update/software/updt/2020/10/windows10.0-kb4577586-x86_9a3ade6ec24a2627276cbd7df0b39ece8ffee269.msu
# Latest available updates for Windows 10 version 1607 #
32-bit (x86)
Servicing Stack Update
https://www.catalog.update.microsoft.com/Search.aspx?q=servicing+stack+1607
click on "Last Updated" column to sort by newest update
Update to remove Adobe Flash Player
http://download.windowsupdate.com/d/msdownload/update/software/updt/2020/10/windows10.0-kb4577586-x86_97a4f342e91e40b921727a8b944a29f7155f3ca1.msu
# Latest available updates for Windows 10 version 1511 #
32-bit (x86)
Servicing Stack Update
http://download.windowsupdate.com/d/msdownload/update/software/crup/2017/08/windows10.0-kb4035632-x86_634071f6d2fad6da96c76513fe45c30aa914abd6.msu
Security update for Secure Boot (install all)
http://download.windowsupdate.com/d/msdownload/update/software/crup/2016/06/windows10.0-kb3173428-x86_9c40f2162b81a7321641a88201e0479b29a59366.msu
http://download.windowsupdate.com/d/msdownload/update/software/secu/2016/07/windows10.0-kb3172729-x86_877795f675546bf16621464230d024863f9e512e.msu