For some updates, an EULA (End-User License Agreement) has to be accepted by the user. With the option /autoaccepteula, all EULAs are accepted automatically before installing.
So the update installation works without any user interaction, the process can be completely unattended.
This works only if WuInstall is called by an administrator or a power user account.
This option logs the console output of WuInstall to the specified log file (each output line also contains the current timestamp).
For example, to log all already installed downloads:
WUInstall.exe /search /criteria "IsInstalled=1" /logfile "c:\data\WuInstallLog.txt"
WuInstallLog.txt contains for example the following lines:
This option is obviously very useful when testing and debugging WuInstall scripts or when running WuInstall with a scheduled job or on remote machines.
The option /logfile_append is similar to /logfile, with the difference that the entries are appended at the end of the specified file, instead of creating a new file.
This option starts a timer with the specified number of minutes at the start of WuInstall and exits WuInstall (if it is not finished before the timer expires) with exit code 12. It exits at any case, no matter how far the execution of WuInstall is.
For example, with /maxruntime 5, WuInstall exits after 5 minutes displaying
This option is intended for machines, where downloads take a lot of time, or machines, which hang for some reason, to prevent WuInstall from running endlessly.
With this option, WuInstall returns 0 for any success and 1 for any error, regardless of the reason.
Which means, if the return code would be 0, 2, 3, 5 or 10, WuInstall returns 0 and displays the message
In any other case (the remaining codes 1, 4, 6, 11, 12), WuInstall returns 1 and displays the message
This option shows the progress for the download of every single update and the installation of the updates, using asynchronous downloads / installation.
On some machines under certain circumstances, the /show_progress option might cause problems, so use it only when manually testing scripts or searching for problems on a single workstation. It is not advised to use it in automated scripts on different workstations.
This feature is not recommended for the productive use of WuInstall!
This options STOPS WuInstall from connecting to the WSUS Server, or Microsoft Update site when searching updates. Instead it searches offline.
This option is quite useful for searching already installed updates. The criteria "IsInstalled=1" and the /uninstall option automatically trigger an offline search.
For example, check if the Update KB982214 is installed on a machine:
WUInstall.exe /search /criteria "IsInstalled=1" /offline /match "KB982214"
When not using IsInstalled=1, the search result list usually contains the updates found at the last online search.
The update-installer is forced to do an installation without user interaction.
Disables showing source prompts to a user when installing the updates.
Suppresses any console output (log file option is still working).
WuInstall takes no action and returns the specified retcode, 0 by default.
Writes an XML report to the specified file. This file contains additional information about the machine.
Includes recommended and optional updates.
Includes potentially superseded updates.
Disables the Internet Explorer 8 set up dialog.
One of the nice things about WSUS is that it allows you to use client side targeting. The idea behind client side targeting is that you can set up different computer groups, and you can roll out updates on a group basis. Client side targeting isn’t used by default, but if you decide to use it, you can use this option to assign the computer to a target group.
This option can be used to search for updates against a cab-file. You can download the cab-file from the following link:
The .cab file must be on a local directory, a UNC path won't work. We suggest copying the .cab file into a local directory before executing WuInstall.
This can be used to update computers, which don't have access to a WSUS, or to the internet. Therefore you have to combine it with the /install_cache option. First all updates have to be downloaded to the cache directory.
You have to execute WUInstall as administrator to use this option, otherwise it won't work.
This options allows it to specify the options in a file which is either on the disk (use file://) or available on the internet (use http://).
In the options-file each option have to be in a separate line.
Use this option to set the temp directory to the given path. By default the temp directory is set to %temp%.
This option forces the update installation.
This option adds additional output. Each line will start and end with the given tag. This makes it easier to parse the output.
Following lines will be added:
After searching and applying filters: %d updates matching filter - %d represents the number of matching updates
Before each download: starting download %d/%d, (%s) - %d/%d for example starting download of the first of three (1/3) updates, (%s) the uuid of the current update
After each download: finished download %d/%d, (%s) - %d/%d for example finished download of the first of three (1/3) updates, (%s) the uuid of the current update
Before each installation: starting install %d/%d, (%s) - %d/%d for example starting install of the first of three (1/3) updates, (%s) the uuid of the current update
After each installation: finished install %d/%d, (%s) result=%s - %d/%d for example finished install of the first of three (1/3) updates, (%s) the uuid of the current update, result=%s result status for the current installation
Last line of output: return code: %d - %d overall return code from WuInstall
For the installation output the /show_progress have to be used additionally.
This option refreshes the timestamps for the last successful search/install, which will be displayed in the Windows Update center.
This option sets the specified service which will be used for searching for updates.
WuInstall will execute the given action before it executes the other commands.
WuInstall will execute the given action after it has finished all other commands.
This option checks if the given drive has at least the specified amount of free space otherwise WuInstall will terminate with the return code 17 - NOT_ENOUGH_DISK_SPACE.
This option prints the xml output after wuinstall has finished. It can also be used without any other command to display system information in xml format.
Specifies the number of retries on search failure.
Use this option when you try to update a machine which gets a lot of updates from a WSUS server. Obtaining a lot of updates from a WSUS can cause a search to fail (because of a limit from the WSUS which is not configurable). Perform multiple searches to get a result.