Not all fixes, patches, and updates for Microsoft products are available for installation in the Windows Server Update Services (WSUS) console. For example, you might have disabled update synchronization for a specific product, Windows version, or update class in your WSUS settings. Also, there are no updates in the WSUS console that are designed to solve a specific problem and don’t imply a bulk installation on all devices. In these cases, you can manually add (import) any update available in the Microsoft Update Catalog to WSUS or SCCM (Configuration Manager) via IE or PowerShell.
For example, we want to add the KB3125574 update to the list of WSUS updates (convenience rollup update that allows fixing a problem of high RAM usage by wuauserv).
Importing Updates Manually into WSUS with Internet Explorer
- Open the WSUS console;
- In the console tree, right-click on the Updates section and select Import Updates;
- Then Internet Explorer will start and automatically go to Microsoft Update Catalog webpage (https://catalog.update.microsoft.com/);When you visit this website in IE for the first time, you will have to install a special ActiveX extension for WSUS. it’s better to add the Microsoft Update Catalog site to the list of trusted websites. You can register this ActiveX component with the command:
regsvr32 c:\Windows\SysWOW64\MicrosoftUpdateCatalogWebControl.dll
- Find the KBs you need with the search and click Add to add them to the basket. It’s better not to select more than 20-30 updates at once;
- Then click View basket to open it;
- Check the option Import directly into Windows Server Update Services (if this option is not available, make sure you have the administrator privileges on your WSUS server) and click Import;
- Wait till the updates are downloaded (If the download is interrupted, try again);
- Then find the downloaded patches in the All Updates section of the WSUS console. Approve the installation of updates on the required computer groups (the easiest way to target computers to WSUS groups is through a GPO).
Thus, any update from the Microsoft catalog can be imported to the WSUS server, including drivers, service packs, feature packs, etc.
Errors When Importing Updates and Drivers into WSUS
You may receive an error when importing updates to WSUS running on Windows Server 2019/2016:
This update cannot be imported into Windows Server Update Services. Cause: it is not compatible with your version of WSUS.
If such an error appears, you need to manually change the URL that is generated after clicking the Import Updates button. Replace in URL http://catalog.update.microsoft.com/…Protocol=1.20
to Protocol=1.80
.
You should get something like this link:
http://catalog.update.microsoft.com/v7/site/Home.aspx?SKU=WSUS&Version=10.0.14393.2248&ServerName=yourwsushost&PortNumber=8530&Ssl=False&Protocol=1.80
If you receive a Failed status (Error Number: 80131509
) when importing updates into WSUS, enable TLS 1.2 strong encryption support for .Net Framework version 4.0 on the WSUS server. To do this, set the SchUseStrongCrypto parameter to 1 in the registry. Run the following command in the elevated cmd:
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /V SchUseStrongCrypto /T REG_DWORD /D 1
Adding Updates Manually into WSUS via PowerShell
You can add new updates to the WSUS server using PowerShell. To do this, you need to download the update file from the Microsoft update catalog website and get its GUID.
Find the KB you need in the WSUS console and click on its name. A web page with a description of the update will open. Copy the updateid value from the address bar, download the MSU update file to your local disk.
Connect to the WSUS server from the PowerShell console:
$WsusSrv = Get-WsusServer
(if you run PowerShell console directly on WSUS server)
$WsusSrv = Get-WsusServer -Name mun-wsus1 -PortNumber 8531 –UseSsl
(if you connect to the WSUS server remotely )
Now you can add the downloaded update to WSUS console. The following import command is used:
$WsusSrv.ImportUpdateFromCatalogSite('UpdateGUID', 'Update.msu')
For example:
$WsusSrv.ImportUpdateFromCatalogSite('a5e40bf9-f1dc-4e6d-93e7-b62c6bf1ce3e', 'C:\Downloads\Updates\kb5005260.msu')
You can check that the update was imported successfully and display information about it:
$WsusSrv.SearchUpdates('kb5005260') | fl *
When importing WSUS update via PowerShell, an error may appear:
Exception calling “ImportUpdateFromCatalogSite” with “2” argument(s): “The underlying connection was closed: An unexpected error occurred on a send.” + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException
This is also because PowerShell is trying to establish a connection over TLS 1.0 protocol, which is being blocked by the WSUS server. To solve the problem, add the SchUseStrongCrypto parameter on the WSUS server (and restart it):
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319 /V SchUseStrongCrypto /T REG_DWORD /D 1
After that, importing the update to the WSUS server from PowerShell will work correctly.
8 comments
I don’t have the Import option (logged as a local Administrator on the server). How can I fix that?
1. Add your admin account to the local WSUS groups.
2. Reset IE settings.
3. Temporary change the security setting in IE on lower level.
4. Try to import the update.
Having a slight issue myself… I have the import option, but when I attempt to download, It fails each time.
If I uncheck the box, the download completes…
If you receive a Failed error when importing updates, you must enable TLS 1.2 strong encryption support for .Net Framework 4 on the WSUS server.
Create a DWORD (32-bit) parameter named SchUseStrongCrypto with value 1 under reg key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319.
Restart WSUS to apply the new settings.
Then try importing updates.
This worked, thank you!
Where is the log for the import? I imported 44 updates but I don’t see them in WSUS
Thank you! Great guide 🙂
Francesco
Hey, my wsus server syncs from a different wsus server. the error i am receiving when i run the powershell cmd is “this method can only be used on a server that syncs from microsoft update”
Any workaround for this?