Effortless WSUS Importing

Streamline Your Import Process with Import-WsusUpdate

Discover how AJ Tek Corporation simplifies the management of Windows Server Update Services (WSUS) with our powerful Import-WsusUpdate cmdlet. Ensure your systems are always up-to-date with minimal effort.

Key Features of Import-WsusUpdate

Download By KB

Use the -KB parameter to specify 1 or more KB numbers to download making it MUCH easier to download multiple updates.

Parallel Downloads

Enable the -DownloadInParallel switch to download multiple update files simultaneously, significantly reducing the overall download time.

Proxy Support

The cmdlet respects WSUS proxy configurations, ensuring seamless connectivity and download capabilities even in proxy-restricted environments.

Automatic Updating

Automatically updates itself to ensure that you are always using the latest version.

Automatic Cleanup

By default, temporary update files are automatically removed after successful import, optimizing storage usage and maintaining a clean system.

Customizable Download Path

Use the -DownloadPath parameter to specify a custom location for downloading update files, allowing for reuse across multiple WSUS servers.

i

Scriptable

Import-WsusUpdate can be used in your own custom scripts.

About Import-WsusUpdate

The Import-WsusUpdate cmdlet is a powerful tool designed to streamline the process of importing updates from the Microsoft Update Catalog into your local WSUS server. By improving the download and import process, Import-WsusUpdate saves time and reduces the risk of human error, making it an essential component in the toolkit of any IT professional managing WSUS servers.

 

Proven Effectiveness

%

User Satisfaction

Our solution has received a 99% satisfaction rate from users who have switched from the Microsoft Import Script method.

Thousands of Downloads

With over 20,000 downloads from the PowerShell Gallery, our solution is trusted by IT professionals worldwide.

How to Install Import-WsusUpdate

Step 1: Ensure you have PowerShell 5.1 or greater.

Open an elevated PowerShell prompt and execute the command:
$PSVersionTable.PSVersion
If you have less than 5.1, you will need to install Windows Management Framework 5.1

Step 2: Install PowerShellGet

Open an elevated PowerShell prompt and execute the command:
Install-Module PowerShellGet -Force -AllowClobber
This ensures you have the latest version of PowerShellGet installed.

Step 3: Restart PowerShell

After installing PowerShellGet, close the PowerShell window and reopen it with elevated privileges to ensure the changes take effect.

Step 4: Install Import-WsusUpdate

In the elevated PowerShell prompt, run the command:
Install-Module -Name Import-WsusUpdate
This will download and install the Import-WsusUpdate module from the PowerShell Gallery.

Step 5: Verify Installation (Optional)

To confirm the installation, you can run:
Get-Module -ListAvailable -Name Import-WsusUpdate
This will list the module if it has been successfully installed.

Import-WsusUpdate Examples

EXAMPLE 1
Import-WsusUpdate "0373ad3c-3f8f-4123-81f8-6d3d8cd86f6d"
Downloads the update files for the update and imports the metadata for the update into the local WSUS server.

The update files will be stored on the local WSUS server (similar to how WSUS will download the files when updates are approved/required).

The UpdateID of an update on the Microsoft Update Catalog can be found on the Update Details page for the update.

EXAMPLE 2
Import-WsusUpdate "0373ad3c-3f8f-4123-81f8-6d3d8cd86f6d" -MetadataOnly
Imports only the metadata for the update into the local WSUS server.

The update files will be downloaded later by WSUS based on the WSUS server’s settings.

The UpdateID of an update on the Microsoft Update Catalog can be found on the Update Details page for the update.

EXAMPLE 3
Import-WsusUpdate -KB "KB5026454"
Searches the Microsoft Update Catalog for the update with KB number 5026454.

If only one result (update) is found, downloads the update files for the update and imports the metadata for the update into the local WSUS server. The update files will be stored on the local WSUS server (similar to how WSUS will download the files when updates are approved/required).

If more than one result (update) is found, the cmdlet will halt execution. The -Filter parameter will need to be used to further refine the search results, or one of the architecture parameters (-x86, -x64, -ARM64) may be used.

Alternatively, the UpdateID can be used instead of filtering the results, and may be required if multiple updates with the exact same title have been released (e.g.: 2023-07 Cumulative Update Preview for .NET Framework 3.5 and
4.8.1 for Windows 11, version 22H2 for x64 (KB5028017)).

EXAMPLE 4
Import-WsusUpdate -KB "KB5026454" -MetadataOnly

Searches the Microsoft Update Catalog for the update with KB number 5026454.

If only one result (update) is found, imports only the metadata for the update into the local WSUS server. The update files will be downloaded later by WSUS based on the WSUS server’s settings.

If more than one result (update) is found, the cmdlet will halt execution. The -Filter parameter will need to be used to further refine the search results, or one of the architecture parameters (-x86, -x64, -ARM64) may be used.

Alternatively, the UpdateID can be used instead of filtering the results, and may be required if multiple updates with the exact same title have been released (e.g.: 2023-07 Cumulative Update Preview for .NET Framework 3.5 and 4.8.1 for Windows 11, version 22H2 for x64 (KB5028017)).

EXAMPLE 5

Import-WsusUpdate -KB KB5037422,KB5037425,KB5037423,KB5037426 -MetadataOnly -Filter "Server"

Searches the Microsoft Update Catalog for the updates with KB numbers provided, and the filters “Server”.

-Filter “Server” is used to filter the search results returned from the Microsoft Update Catalog for EACH KB. This is used as KB5037425, KB5037423, and KB5037426 have been released for multiple Windows versions (e.g.: Windows 10 Version 1809 and Windows Server 2019), but we are only interested in importing the version for Windows Server.

Only the metadata for the updates will be imported into the local WSUS server.

The updates’ files will be downloaded later by WSUS based on the WSUS server’s settings.

EXAMPLE 6
Import-WsusUpdate -KB "KB5029244" -MetadataOnly -x64 -Filter "21H2","-Dynamic"

Searches the Microsoft Update Catalog for the update with KB number KB5029244, and the filters “21H2”, “-Dynamic” and “x64”.

Only the metadata for the update will be imported into the local WSUS server.

The update files will be downloaded later by WSUS based on the WSUS server’s settings.

EXAMPLE 7
Import-WsusUpdate "0373ad3c-3f8f-4123-81f8-6d3d8cd86f6d" -DownloadPath "C:\MUCatalogUpdateFiles"

Downloads the update files for the update to C:\MUCatalogUpdateFiles and imports the metadata for the update into the local WSUS server.

The update files will be stored on the local WSUS server (similar to how WSUS will download the files when updates are approved/required).

If the update files are already present in the folder specified by the -DownloadPath parameter, the download(s) for the existing file(s) will be skipped. The update files will not be automatically removed after importing them into the WSUS server.

The UpdateID of an update on the Microsoft Update Catalog can be found on the Update Details page for the update.

EXAMPLE 8
Import-WsusUpdate "0373ad3c-3f8f-4123-81f8-6d3d8cd86f6d" -DownloadPath "C:\MUCatalogUpdateFiles" -DownloadInParallel

Downloads the update files for the update to C:\MUCatalogUpdateFiles and imports the metadata for the update into the local WSUS server.

The update files will be stored on the local WSUS server (similar to how WSUS will download the files when updates are approved/required).

If the update files are already present in the folder specified by the -DownloadPath parameter, the download(s) for the existing file(s) will be skipped. The update files will not be automatically removed after importing them into the WSUS server.

The update files will be downloaded in parallel, with a maximum of 4 active downloads active at once.

The UpdateID of an update on the Microsoft Update Catalog can be found on the Update Details page for the update.