WUOffline — Windows Update Offline (2024)

About the software

Introduction

WUOffline is a Powershell module to manage WindowsUpdates. Get-WinUpdate can list installed and/or needed updates,using an offline scan catalog you supply. Output includes the URL for theupdate package file (.CAB) to download from Microsoft'sCDN. Install-WinUpdate can install one or more update packagesyou've downloaded.

Download: WUOffline.psm1

Features

  • Can update anything that uses the Windows Update infrastructure —that includes Microsoft Office, SQL Server, and others.
  • Updates packages can be downloaded in one environment and thentransferred to another.
  • The scan catalog and update packages can be transported using offlineremovable media (sneakernet), suitable for air-gaped deployments.
  • Does not download anything itself. File transfer is entirely under yourcontrol.
  • The download lists are plain text, easy to review and audit, or evenprint and OCR.
  • Entirely self-contained in a single human-readable script module,distributed as source code, for easier review and approval.
  • Freely available for any use, without restriction, under a public domaindedication (the Unlicense).

WUOffline vs WSUS Offline Update

WUOffline should not to be confused with WSUS Offline Update (WOU),which is an unrelated project with similar overall goals, but taking adifferent approach.

WUOffline is designed for tightly-managed environments where the softwarebeing introduced is strictly controlled. WUOffline is pure PowerShell, smallenough to easily audit. There are no binaries or third-party utilities. Itdoesn't download anything automatically. Because it generates update listsfor the computer being scanned, only what is needed for that configurationneeds to be downloaded. It is aimed at experienced professionals comfortableworking with the command line.

WSUS Offline Update is a more general-purpose tool. It downloads completepackage sets for all possible configurations, resulting in a more universalinstall kit, but also much larger file transfers. It incorporatesthird-parties utilities and pre-compiled binaries, which are more difficult to audit and approve. It has a friendly GUI.

Pick the tool that is right for you. Most people are likely better servedby WSUS Offline Update.

Using the software

Installation

To use WUOffline, you have to import the module into your runningPowerShell environment. For example:

 Import-Module C:\WU\WUOffline.psm1 

You may want to put a command in yourPowerShell profile to do so automatically.

The module exports two commands: Get-WinUpdateand Install-WinUpdate. Once the module is imported, you canuse Get-Help to read the documentation. For example:

Get-Help -Full Get-WinUpdate | more

Notes

WUOffline commands generally need to be run by a user with Administratorprivileges, and fully elevated.

It is normal for the scan/search phase of the process to take severalminutes, and for the install phase to take even longer. There will be nofeedback during either of these operations, even with -Verbose.

Workflow

Overall workflow for WUOffline would typically be something likethis:

  1. Download the offline scan catalog from Microsoft. URL:
    http://go.microsoft.com/fwlink/?LinkId=76054
  2. Copy the scan catalog to target system
  3. On the target system, run something like this:
    Get-WinUpdate C:\WU\WSUSSCN2.CAB | select links > C:\WU\links.txt
  4. Copy links.txt to Internet-connected system
  5. Download the files from links.txt, for example:
    wget -i links.txt
  6. Copy results of download to target system
  7. On the target system, run something like this:
    Install-WinUpdate C:\WU\WSUSSCN2.CAB C:\WU\pkgs

Examples

Get-WinUpdate -Installed C:\WU\WSUSSCN2.CAB | Out-GridView

Report installed updates in a GUI table view. This still needs a scancatalog and still performs an update scan.

Get-WinUpdate -All C:\WU\wsusscn2.cab | Export-CSV "C:\WU\$( Get-Date -f "yyyy-MM-dd-HHmm" ).CSV"

Scan for updates, and report all updates (both needed and installed).Store the scan results in a Comma Separated Values (CSV) file, with a filename based on the date and time.

Get-WinUpdate -Catalog C:\WU\wsusscn2.cab -Exclude 890830 | select > links.txt

Scan for updates, and write the URLs that need to be downloaded into atext file. Exclude update 890830 (the Malicious Software Removal Toolincluded every month). The URL list can then be given to downloader programssuch as WGET, CURL, GetRight, etc.

Install-WinUpdate C:\WU\wsusscn2.cab C:\WU\pkgs

Install updates using package files previously placed in theC:\WU\pkgs\ directory. No output will be given, unless a package ismissing, a reboot is required, or a problem is detected.

Install-WinUpdate -Verbose -Catalog C:\WU\wsusscn2.cab -Repo C:\WU\pkgs

Same as the previous, but with reassurance for the operator. Explicitparameter names (switches) are used in the invocation. Major operations arereported as they are performed, and a few simple statistics will begiven.

Install-WinUpdate C:\WU\wsusscn2.cab C:\WU\pkgs -Include 4566424

Install only updates with MSKB matching "4566424". In this case, it is aServicing Stack Update, being installed before other updates.

One-Way Transfers

In certain very high security environments, a common restriction isone-way data flow. That is, files can be copied to the target system, butfiles cannot be copied back out. Like a black hole, things can enter, butnothing can leave. WUOffline was designed for such environments. Thesolution is to build a model system.

The model system should be nearly identical to the target systems, bothhardware and software. Ideally, the model system is the same brand and modelof PC, with the same specs, and the same peripherals (monitor, printer, etc.).The same software should be installed, in the same order. All the samehardening, Group Policies, etc., should be applied. Ideally, the model systemis installed from the same system image ("gold master") as the targetsystems.

The only difference is, the model system has nothing sensitive on it, andthus is not subject to one-way data flow restrictions. It is often entirelyoutside the physical environment of the target systems, in a development labor office.

Virtual machines can be useful for this, but beware of virtual machinesoftware installing dependencies which alter the software environment (andthus change the updates that will be needed). Likewise, VMs will havedifferent drivers, and many drivers include large software suites these days.In my environments, I did testing first in a VM, but then had a model systemon physical hardware in the lab for final test.

Ideally, the model system should not be connected to any external network,as that is a configuration difference that may perturb the update process. Ifthe target environment includes an isolated network (ISOLAN), build a similarconfiguration in the lab, with model server and model client.

With your model system, follow the workflow given above. Copy the scancatalog to the model system using removable media, run Get-WinUpdate with thatscan catalog, and copy the resulting links off using removable media as well.Download the packages, generate media, and then test installation on the modelsystem. Once you're confident it works, generate media for introduction intothe target environments.

WUOffline — Windows Update Offline (2024)

FAQs

Can Windows updates be done offline? ›

If you have a WSUS server on-site, the machines wont need access to the internet, just to the WSUS server to be updated, this can include OS upgrades.

Can I update Windows without internet? ›

Can your PC update without Internet? Technically, it is impossible to update Windows without the Internet. However, you can temporarily disable your Internet connection and then enable it again after the updates are installed. This will allow you to update Windows without actually using the Internet.

Can Windows 11 be updated offline? ›

Another way to install Windows 11 without internet is by using a pre-configured ISO that includes all necessary updates and drivers. This method involves creating an updated ISO image with the latest updates and drivers integrated, allowing for an offline installation.

How do I force Windows Update to download from internet? ›

Follow the steps below to force Windows update with the command line:
  1. Type cmd in the search box, choose Run as administrator, and click Yes to continue.
  2. Type wuauclt.exe /updatenow and hit Enter.
  3. This command will force Windows Update to check for updates and start downloading.
Jul 24, 2024

How to manually download Windows updates? ›

Manually install Windows updates
  1. On the left end of the taskbar, click the Start icon.
  2. Type, Settings and hit Enter.
  3. Click Update & Security.
  4. Click the blue link 'Check online for updates from Microsoft Update' and install the listed updates.
May 21, 2024

How to update Windows apps offline? ›

You can download the updates for the Windows Store apps from the Windows Update Catalog<sup>1</sup> and install them offline using System Center, WSUS, or other deployment tools. However, this method only works for the apps that are distributed with Windows 11/10 editions, not for third-party apps.

How do I stop Windows Update from using the internet? ›

Navigate to “Computer Configuration” > “Administrative Templates” > “Windows Components” > “Windows Update.” Double-click on “Configure Automatic Updates” to open the settings. Select the “Disabled” option to turn off automatic updates. Click on “Apply” and then “o*k” to save the changes.

What happens if I lose internet during a Windows Update? ›

If you lost your network connection immediately after upgrading or updating Windows 10, it's possible that the current driver for your network adapter was designed for a previous version of Windows. To check, try temporarily uninstalling the recent Windows Update.

Can I install Windows 10 without internet? ›

Can I reinstall Windows 10 without an internet connection? Yes, you can reinstall Windows 10 without an internet connection.

How to update Windows 11 22H2 offline? ›

From another PC, download the 22H2 ISO using Rufus or Media Creation Tool. Transfer the USB stick/ISO to the offline computer. Double-click the ISO to mount it to a drive letter. Run Setup.exe and complete the upgrade process.

When can you no longer upgrade to Windows 11? ›

I know Microsoft's website states " The free upgrade offer does not have a specific end date for eligible systems. However, Microsoft reserves the right to eventually end support for the free offer. This end date will be no sooner than October 5, 2022. "

How to force Windows 11 upgrade? ›

If Windows 11 isn't appearing as an update on your PC, you can still install it through Microsoft's Windows 11 Installation Assistant. Browse to the Download Windows 11 page, click the Download now button under the Windows 11 Installation Assistant section, and run the Windows11InstallationAssistant.exe file.

Can I download Windows Update offline? ›

Luckily, there's a program you can use to download the needed Windows Updates on a computer that has internet access and then install them on the offline computer. It's called Portable Update, and we're going to show you how to use it.

Why is my Windows 11 update taking so long? ›

One of the causes of the Windows 11 update getting stuck can be insufficient storage of your system drive. Windows updates are pretty big, the ISO of Windows 11 is over 4.5GB. so it's important to make sure you have plenty of room on your system drive for Windows 11.

Why can't I download the new Windows Update? ›

It can be due to different reasons, like Windows Update service issues, corrupted system files, and outdated drivers. It becomes easy to apply the different fixes mentioned above. All you need to do is run a Windows update troubleshooter, disk space cleaning, or run a system scan.

Does Windows 11 update need internet? ›

The only way to upgrade from Windows 10 to 11 without an Internet Connection is to download the Windows 11 ISO on another PC that has an Internet Connection, then transfer the ISO to your PC and use it to perform an in-place upgrade.

What is the offline update tool for Windows 10? ›

WSUS Offline Updater is a small open-source software tool for Windows to download updates automatically from the Microsoft server. Step 1: Download WSUS Offline Updater and you should make sure the version you download is the most recent version of the tool.

What happens when you don t update the Windows for a long time? ›

If you don't install updates, your computer will be more vulnerable to security threats. It may also miss out on bug fixes and performance improvements, leading to potential stability and compatibility issues.

How do I update Windows 10 offline security? ›

In Windows 10, version 1607, the offline scan can be run from Windows Settings > Update & security > Windows Defender or from the Windows Defender client. On your Windows device, open the Windows Security app, and then Scan options.

References

Top Articles
Latest Posts
Article information

Author: Gov. Deandrea McKenzie

Last Updated:

Views: 5531

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Gov. Deandrea McKenzie

Birthday: 2001-01-17

Address: Suite 769 2454 Marsha Coves, Debbieton, MS 95002

Phone: +813077629322

Job: Real-Estate Executive

Hobby: Archery, Metal detecting, Kitesurfing, Genealogy, Kitesurfing, Calligraphy, Roller skating

Introduction: My name is Gov. Deandrea McKenzie, I am a spotless, clean, glamorous, sparkling, adventurous, nice, brainy person who loves writing and wants to share my knowledge and understanding with you.