- Documentation
- WuInstall
Additional Options
These switches control WuInstall's runtime behavior — reboots, WSUS routing, and unattended EULA handling.
3.1 Reboot
wuinstall /reboot 30 reboots after 30 seconds.
wuinstall /install /reboot installs, then reboots after 10 seconds (the default).
The /reboot switch triggers a system reboot a specified number of seconds after WuInstall finishes. If no interval is given, the default is 10 seconds. It can be used standalone or combined with any core switch.
Note:
/rebootreboots whether or not updates were found or installed, but not when the run fails (for example, when the update search fails). To reboot only when the installed updates require it, use/reboot_if_needed(only together with/install).
3.2 Reboot Cycle
wuinstall /install /reboot_if_needed /rebootcycle 2 /logfile_append "C:\loginst.txt"
/rebootcycle fully automates multi-reboot update sequences. Before it reboots, WuInstall registers a scheduled task (WuInstallRebootCycle, running as SYSTEM) that runs the same command again at the next system startup — repeating until no further reboot is needed. Without /reboot or /reboot_if_needed, /rebootcycle reboots only when the installed updates require it — and not in the last run, when the maximum number of reboot cycles is reached (see Reboot / Shutdown Options).
To avoid infinite loops, the number after /rebootcycle limits how often WuInstall runs again (default: 3). Using /logfile_append alongside /rebootcycle is recommended to capture a complete log across all reboot cycles.
ℹ️ WuInstall 3 also starts the task when the machine runs on battery; WuInstall 2.9.x does not. From WuInstall 3.0.5 on, the task contains no passwords (
/proxypass,/smtpPassword) or user names, also not those read from an/optionsfile: they are kept encrypted until the task is deleted, and the later runs log on as before — see Reboot / Shutdown Options. WuInstall 3.0.0 to 3.0.4 wrote them into the task in clear text, also with/masksensitivedata; WuInstall 2.9.x wrote the masked text with/masksensitivedata, so the later runs could not log on to the proxy or the mail server.
👉 See also: Reboot / Shutdown Options
3.3 Reboot Cycle with Shutdown
wuinstall /install /rebootcycle /shutdown
Extends the reboot cycle: WuInstall reboots as long as the installed updates require it and shuts the machine down once no further reboot is needed — or when the maximum number of runs is reached. Useful for scheduled overnight patching where the machine should be off when staff arrive.
3.4 Bypass WSUS
wuinstall /install /bypass_wsus /match "KB956844"
Forces WuInstall to retrieve updates directly from Windows Update, ignoring any configured WSUS server for the duration of the run. WSUS is automatically re-enabled once WuInstall finishes.
Note:
/bypass_wsusis deprecated in WuInstall 3 and 2.9.x. Use/UseUpdateService WindowsUpdateinstead (or/UseUpdateService MicrosoftUpdateto include Office and other Microsoft products) — it bypasses WSUS for the run without changing the WSUS settings in the registry. WithMicrosoftUpdate, WuInstall registers the Microsoft Update service on the machine, and the registration stays after the run.⚠️ If WuInstall is interrupted or crashes mid-run, the registry value
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU → UseWuServermay remain set to0. Set it back to1manually to restore WSUS.
3.5 Use Specific WSUS
wuinstall /install /use_wsus http://wsus2:8530
Overrides the configured WSUS server for the current run. Useful when targeting a specific WSUS instance or when no WSUS is configured on the machine but one is available on the network. The original WSUS configuration is restored automatically after execution.
⚠️ If WuInstall is interrupted, the following registry keys may need to be reset manually:
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWuServerHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServerHKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUStatusServer
3.6 Auto-Accept EULAs
wuinstall /install /autoaccepteula
Some updates require EULA acceptance before installing. WuInstall accepts these EULAs automatically, with or without /autoaccepteula (the switch is kept for compatibility), so unattended deployments do not stall on interactive prompts.