Forum Discussion
Karl-WE
Nov 02, 2021MVP
HOW-TO: Import Out of Band Updates to WSUS using Microsoft Edge Chromium IE Mode and PowerShell
----- I recommend using https://www.powershellgallery.com/packages/Import-WSUSUpdate Full instructions to install the module are located here - https://www.ajtek.ca/blog/the-new-way-t...
Deleted
Jul 31, 2023alternatively, 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-WE
Sep 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!
- Karl-WESep 17, 2023MVPYou're welcome. You can appreciate the efforts in addition by liking Adam's reply and the original post
- Karl-WESep 16, 2023MVPThank you for your additional information, Adam!