- Documentation
- WuInstall
WSUS Options
/bypass_wsus (deprecated)
This option is deprecated, use /UseUpdateService instead.
The /bypass_wsus option bypasses any configured WSUS and forces WuInstall to use Windows Update directly.
If a WSUS is configured, WuInstall changes the value UseWUServer in the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU from 1 to 0, which means that no WSUS should be used, and restarts the Windows Update service (wuauserv).
If you type
WUInstall.exe /search /bypass_wsus
and a WSUS is configured, the output is:
Configured WSUS Server http://mywsus.local:8530
bypass_wsus specified, bypassing WSUS ... successful!
After the execution, WuInstall sets UseWUServer back to 1, which restores the initial state:
bypass_wsus specified, reactivating WSUS ... successful!
When the execution of WuInstall is aborted for some reason before WuInstall can reset the registry value, it has to be reset manually!
/use_wsus wsus_address
The /use_wsus option works similarly to the /bypass_wsus option, but you can specify another WSUS, which is valid during the execution of WuInstall (or it allows you to switch from no WSUS at all to a certain WSUS).
WuInstall changes the following registry values (and restarts the Windows Update service wuauserv after each change):
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer: is set to1HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServer: is set to the specified wsus_addressHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUStatusServer: is set to the specified wsus_address
and stores the initial values for resetting them after WuInstall has finished.
For example, if you have WSUS http://mywsus.local:8530 configured, and want to go to the WSUS http://mywsus2.local:8530, you type:
WUInstall.exe /search /use_wsus http://mywsus2.local:8530
and WuInstall prints:
Configured WSUS Server http://mywsus.local:8530
use_wsus specified .... WUServer and WUStatusServer successfully set to http://mywsus2.local:8530
After the execution of WuInstall, the initial state is restored (in this example, the WSUS is reset to http://mywsus.local:8530). WuInstall 3 prints the line below; WuInstall 2.9.x prints use_wsus specified, reactivating WUServer http://mywsus.local:8530, WUStatusServer: http://mywsus.local:8530 ... successful! instead:
use_wsus specified, reactivating original WSUS ... successful!
When the execution of WuInstall is aborted for some reason before WuInstall can reset the registry values, they have to be reset manually!
/use_mu_on_error
When an error occurs while trying to install an update using WSUS, WuInstall automatically tries again to install the updates, bypassing the WSUS and using Microsoft Update (Windows and other Microsoft products). This requires a configured WSUS. WuInstall 3 also retries when the search against the WSUS fails. In WuInstall 2.9.x the retry stayed on the WSUS, so the switch never reached Microsoft Update. The exit code still reports the first error (1, or 11 if a reboot is pending), even if the retry succeeds.
⚠️ Use with care: in WuInstall 3 this fallback really runs. After a failed WSUS search or installation, WuInstall searches Microsoft Update directly and, with
/install, installs what it finds there — also updates that were never approved in your WSUS — and reboots as your reboot options say. If the WSUS search failed before it found any updates (for example because the WSUS server cannot be reached), the fallback searches with your search criteria; with the default criteria this includes optional installations such as feature updates on current Windows 10 and 11./use_mu_on_erroralso registers the Microsoft Update service on the machine, and this registration stays after the run. Use it only where installing from Microsoft Update is intended, and test it first.
/use_wu_on_error
When an error occurs while trying to install an update using WSUS, WuInstall automatically tries again to install the updates, bypassing the WSUS and using Windows Update (Windows updates only). Otherwise it works like /use_mu_on_error, and the caution above applies as well — only no update service is registered.