WuInstall is part of the XEOX family. XEOX manages patches, software and remote access for Windows, macOS and Linux in one web console. Discover XEOX

  1. Documentation
  2. WuInstall

Basic Options

Switch Reference


/help

Displays the full usage reference. /? does the same.


/search

Searches for available updates via the Windows Update API. The default criteria — when no /criteria is specified — is IsInstalled=0 and Type='Software'; on Windows 10 (version 1803 or later) and Windows 11, but not on Windows Server, it also covers optional installations such as feature updates (see Criteria Options). Drivers are excluded by default.

WuInstall automatically detects whether a WSUS server is configured and routes the search accordingly:

Configured WSUS Server http://wsus.mycompany.local:8530

You have no WSUS Server configured

Use /UseUpdateService (e.g. /UseUpdateService MicrosoftUpdate) or /use_wsus to override this behavior for the current run; /bypass_wsus still works but is deprecated.

Search flow:

  1. Search executes and prints the active criteria
  2. If the criteria string is invalid → exits with code 4
  3. If the search fails, WuInstall retries once automatically (/retrycount sets the number of retries). If all attempts fail → exits with code 1 (11 if a reboot is pending) and prints the error code
  4. If no updates are found → exits with code 2
  5. Matching updates are filtered (see /severity, /classification, /product, /match, /nomatch, /matchfile, /nomatchfile, /isdownloaded)
  6. If no updates pass the filters → exits with code 3
  7. Matching updates are listed (the /xmlout report contains all details, such as classification, product, size and release date)
  8. Exits with code 0 (10 if a reboot is already pending) — no further action taken

Useful for auditing available updates, checking installed updates with /criteria "IsInstalled=1", or validating filter logic before running a live install.


/download

Runs a full search (identical to /search, with all specified criteria and filters), then downloads all matching updates — either from WSUS or Windows Update directly.

  • Downloads follow the same order as the search result list
  • Already-cached updates are skipped automatically (see /isdownloaded)
  • Progress can be tracked with /show_progress
  • Cache location: Windows\SoftwareDistribution\Download
  • If a download fails, WuInstall logs the error code and continues with the next update; the run then ends with exit code 1 (11 if a reboot is pending)
  • On success → exits with code 0 (10 if a reboot is pending)

/download_to "C:\path"

Behaves identically to /download, but additionally copies the downloaded installation files (e.g. .msu, .cab, .exe) to the specified directory for manual installation or distribution to other machines.

Key behaviors:

  • Most updates are bundles containing multiple sub-updates, each producing a separate installation file — expect more files than updates
  • Copy failures are non-fatal: WuInstall logs the error code and continues with the next update
  • Can be combined with /isdownloaded 1 to copy already-cached updates to a directory without re-downloading
  • Meant for classic update packages (.msu, .cab, .exe, e.g. the Malicious Software Removal Tool or .NET updates). The monthly cumulative updates of current Windows versions come from Windows Update as express or UUP content and are downloaded by every machine — to share them within a network, use Delivery Optimization or WSUS

/install

Runs a full search and download, then installs all matching updates in a single pass. Before installing, WuInstall validates that each update downloaded correctly and accepts any EULA that has not been accepted yet. This is the default, so /autoaccepteula is not needed for unattended use.

Install flow:

  1. The updates to install are listed
  2. Installation runs in one step; progress trackable with /show_progress
  3. If installation fails → exits with code 1 (11 if a reboot is pending) and prints the error code
  4. On completion, results are enumerated per update with individual and overall result codes
  5. WuInstall checks if a reboot is required:
    • Reboot required → exits with code 10
    • No reboot required → exits with code 0

/uninstall

Uninstalls updates from the current machine. Searches offline for installed updates (IsInstalled=1) and uninstalls those matching the specified filters. All standard filter switches apply (/match, /severity, /product, etc.).

wuinstall /uninstall /match "KB2251419"

⚠️ Running /uninstall without any filter options is strongly discouraged — it will attempt to uninstall all installed updates.

If the uninstallation fails, WuInstall 3 returns exit code 1 (11 if a reboot is pending); WuInstall 2.9.x returned 0 (10) even then. With /rebootcycle, WuInstall 3 restarts the machine when the uninstallation requires it; WuInstall 2.9.x restarts after /uninstall only with /reboot (see Reboot / Shutdown Options).

Limitations:

  • Only works with updates that were installed via WSUS. Attempting to uninstall non-WSUS updates returns error 0x80240028 – WU_E_UNINSTALL_NOT_ALLOWED
  • Some updates cannot be uninstalled due to internal dependencies

Read as Markdown

Updated