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

Criteria Options

/criteria "query string"

Overrides the default search criteria used to query Windows Update or WSUS. The default — when no /criteria is specified — is:

IsInstalled=0 and Type='Software'

Note: drivers are excluded from the default search. On Windows 10 (version 1803 or later with current updates) and Windows 11 — not on Windows Server — the default is IsInstalled=0 and DeploymentAction='Installation' and Type='Software' or IsInstalled=0 and DeploymentAction='OptionalInstallation' and Type='Software', so that feature updates are found as well; /includedriver and /alltypes are extended the same way.

⚠️ With /use_mu_on_error or /use_wu_on_error, WuInstall 3 searches Microsoft Update or Windows Update with these criteria when the WSUS search fails, and with /install installs what it finds — with the default criteria on Windows 10 and 11 also feature updates. See WSUS Options.

If an invalid criteria string is provided, WuInstall reports it and exits with code 4. The criteria in use is printed before the search runs. WuInstall 2.9.x prints:

Searching for updates ... Criteria: IsInstalled=1

WuInstall 3 prints Searching for updates (criteria: IsInstalled=1) ... instead.

Example — updates intended for automatic installation that are not hidden, searched on Windows Update:

wuinstall /search /UseUpdateService WindowsUpdate /criteria "IsHidden=0 and IsInstalled=0 and IsAssigned=1"

For full criteria query syntax, refer to the Microsoft IUpdateSearcher::Search documentation.


Criteria Shorthand Switches

For common search scopes, WuInstall provides dedicated switches as alternatives to writing out the full criteria string. Only one of /criteria, /driveronly, /includedriver and /alltypes can be used per call; combining them is a syntax error (exit code 7):

Switch Equivalent Criteria Description
/driveronly IsInstalled=0 and Type='Driver' Pending drivers only
/includedriver (Type='Software' and IsInstalled=0) or (Type='Driver' and IsInstalled=0) Pending software and drivers
/alltypes IsInstalled=0 All pending updates regardless of type

Read as Markdown

Updated