- Documentation
- WuInstall
Filter Options
/classification <codes>
Filters results by update classification. Combine letter codes freely to select multiple classifications:
| Code | Classification | Description |
|---|---|---|
C |
Critical Updates | Broadly released fixes for critical non-security bugs |
U |
Updates | Broadly released fixes for non-critical, non-security bugs |
R |
Update Rollups | Cumulative packages of hotfixes, security and critical updates |
S |
Security Updates | Broadly released fixes addressing security vulnerabilities |
E |
Service Packs | Cumulative sets of all updates since product release, may include design changes |
F |
Feature Packs | New feature releases, typically rolled into the next product version |
D |
Definition Updates | Virus or other definition file updates |
A |
Upgrades | Major OS upgrades (e.g. Windows 11 22H2) |
wuinstall /search /criteria "IsInstalled=1" /classification CRSE
/severity <codes>
Filters results by severity level. Applies to security updates only — non-security updates carry severity Unknown. Combine letter codes to select multiple levels:
| Code | Severity | Description |
|---|---|---|
C |
Critical | Exploitable without user action (e.g. wormable vulnerabilities) |
I |
Important | Risk to data confidentiality, integrity, or availability |
M |
Moderate | Impact significantly reduced by default config or difficulty of exploitation |
L |
Low | Extremely difficult to exploit or minimal impact |
U |
Unknown | All non-security updates |
wuinstall /search /severity CIU — critical, important, and unknown
/product "product_name"
Filters results to a specific product. The product name must be an exact, case-sensitive match — no wildcards. Only one product can be specified per call.
wuinstall /search /criteria "IsInstalled=1" /product "Forefront Client Security"
/noproduct "product_name"
Inverse of /product — excludes all updates belonging to the specified product. Do not combine it with /product: both switches share one value, so the combination selects no updates. WuInstall 2.9.x only accepts the spelling /notproduct (/noproduct returns exit code 7 there); WuInstall 3 accepts both.
/match "string|regex"
Includes only updates whose title or update ID matches the specified string (case-sensitive). Full regular expressions are supported. From WuInstall 3.0.4 on, a pattern that is not a valid regular expression (for example with an unbalanced bracket) is a syntax error (exit code 7), for /nomatch as well; earlier versions treated it as matching nothing, so a broken /nomatch pattern excluded nothing.
wuinstall /search /match "KB890830"wuinstall /search /match "(Language|KB93|Internet Explorer)"— regex OR
/nomatch "string|regex"
Inverse of /match — excludes updates whose title or update ID matches the given string or pattern. Give it once and combine several terms in one pattern ("Preview|Feature update"): a switch given twice is a syntax error (exit code 7) in WuInstall 2.9.x and from 3.0.4 on, while 3.0.0 to 3.0.3 used only the last one. Can be combined with /match:
wuinstall /search /match "(SQL|Office)" /nomatch "Service Pack"
For a regex reference see this guide.
/matchfile <path>
Applies multiple match expressions from a file (one per line). An update is included if its title or update ID matches at least one entry. Regular expressions are supported. Text after # is a comment; after a line #nocase the entries are matched case-insensitively (write them in lowercase) until a line #case. If the file does not exist, no update is selected (exit code 3).
# C:\updateList.txt
KB963671
KB975467
.NET Framework 3.5 SP1 Security
Security State Assessment 1.0
wuinstall /search /matchfile "C:\updateList.txt"
Useful for maintaining a central rollout list on a shared network drive. Supported encodings: UTF-8 and ANSI. WuInstall 3 also reads UTF-16 and UTF-32 files with a byte order mark. WuInstall 2.9.x does not support UTF-16, and entries with non-ASCII characters (e.g. umlauts) only match there if the file is saved as ANSI.
/nomatchfile <path>
Inverse of /matchfile — excludes any update matching at least one entry in the file. If the file does not exist, no update is selected at all — from WuInstall 3.0.4 on also when a line in it is not a valid regular expression (the log names the file).
wuinstall /search /nomatchfile "C:\exclude.txt"
/isdownloaded 1|0
Filters by local cache status. Use /isdownloaded 1 to install only updates already present in the local cache:
wuinstall /install /isdownloaded 1
Note: Manually deleting files from
Windows\SoftwareDistribution\Downloadmay cause this filter to behave unexpectedly — deleted updates may still be reported as downloaded.
/releasedate [lt|eq|gt]:<YYYY-MM-DD> or /releasedate <+/-Days>
Filters updates by release date. An invalid value is ignored, so no date filter is applied. WuInstall 3 also accepts the spelling /release_date (WuInstall 2.9.x returns exit code 7 for it). Two usage modes:
Absolute date:
wuinstall /search /releasedate lt:2022-05-06— released before May 6 2022wuinstall /search /releasedate gt:2022-01-01— released after Jan 1 2022
Relative days:
wuinstall /search /releasedate +10— updates 10 days old or olderwuinstall /search /releasedate -10— updates released within the last 10 days
/maxUpdateCount <number>
Caps the number of updates processed in a single WuInstall call. If more updates are available than the specified limit, only the first n are handled.
/updateSize [lt|gt]:<size> or bt:<min>-<max>
Filters updates by download size. Supported units: KB, MB, GB. An invalid value is a syntax error (exit code 7).
wuinstall /search /updateSize lt:50MB— smaller than 50 MBwuinstall /search /updateSize bt:10MB-200MB— between 10 MB and 200 MB
/maxTotalSize <size>
Sets a cumulative size cap (e.g. 500MB) across all updates in the result list; /maxPayload is an alias. WuInstall iterates through the list and stops including updates once the accumulated size exceeds the limit.
/query_history
Appends a full history of previously installed updates to the XML output file. Has no effect unless /xmlout (or /info) is also specified, and only together with /search, /download or /install. The JSON report of /jsonout (WuInstall 3) does not contain the history.