Forum Discussion
HOW-TO: Import Out of Band Updates to WSUS using Microsoft Edge Chromium IE Mode and PowerShell
abbodi1406 released a gist to retrieve the update ID required for Microsoft PowerShell method.
if you find issues with his script, please contribute using github https://gist.github.com/abbodi1406/d061bb3ac22a015947414ef988053eef
Examples:
all IDs
.\GetUpdateID.ps1 KB5028245
specific architecture
.\GetUpdateID.ps1 KB5028245 x64
specific version or product
.\GetUpdateID.ps1 5028264 x64 Server
.\GetUpdateID.ps1 5028264 x64 Embedded
.\GetUpdateID.ps1 5028166 x86 22H2
alternatively, to the script from abbodi1406 here is a different approach from Wolfgang Sommergut.
It should be compatible with PowerShell 5 and 7, as out-gridview relies on the deprecated ISE and this might be manually removed already from Windows Server, I encourage to deploy PowerShell 7 on the WSUS Server and remove ISE.
source: Import von Updates nach WSUS erfolgt nun mit PowerShell | WindowsPro
$kb = Read-Host -Prompt "Nach welcher KB suchen?"
if($kb.Substring(0,2) -ine "kb"){
$kb = "kb" + $kb
}
$uc = Invoke-WebRequest -Uri "https://www.catalog.update.microsoft.com/Search.aspx?q=$kb"
$uc.Links | where onClick -Like "*goToDetails*"|
foreach {$_.innerText + ";" + $_.id -replace '_link',''} |
ConvertFrom-Csv -Delimiter ";" -Header "Bezeichnung","ID"|
Out-GridView -PassThru | Format-List
@
- Karl-WESep 13, 2023MVP
If you like to utilize a module instead be invited to check out for a nice solution from an experienced MVP in this area:
https://www.powershellgallery.com/packages/Import-WSUSUpdate
- Sep 14, 2023Full instructions to install the module are located here - https://www.ajtek.ca/blog/the-new-way-to-import-updates-into-wsus/
- SmlBizAdminSep 16, 2023Brass ContributorThose instructions worked like a charm being easy and quick. Thank you!