|
How to use WuInstall?
WuInstall is a command line tool, so you have to run "cmd" to get to the command line. If you double click on WuInstall, you only get a window showing a short description of the parameters. We recommend to run WuInstall as administrator to avoid troubles with access rights.
Basically, you can do three things with WuInstall:
- Searching for Updates: wuInstall /search
→ searches for all available updates, either (if configured) on the internal WSUS or in the internet on the Microsoft Update Server and gives a list of the updates found
- Downloading updates: wuInstall /download
→ does a search like in a), and downloads the updates found
- Installing updates: wuInstall /install
→ does a search first, then it downloads and finally installs the updates found
There are several options for selecting not all, but only specific updates: /severity, /match, /nomatch, /matchfile, /nomatchfile, /classification, /product, /criteria
Beyond that, there are some other very useful options:
- /bypass_wsus: switches the WSUS off while executing WuInstall, to force going for the Microsoft Update Server in the internet
- /autoaccapteula: automatically accepts EULAs for all updates which have to be installed → no user interaction required
- /reboot [nseconds]: after executing wuInstall, the system is rebooted after n seconds
For more infos, see also the WuInstall HowTos
How do i call wuInstall on a remote machine using psexec?
Use the following command:
psexec \\server -c -s -u domain\administrator -p password \\share\path_to_wuinstall\WUInstall.exe /search
- \\server → the remote windows machine
- \\share\path_to_wuinstall\ → path to wuInstall executable
- -u domain\administrator → local admin oder domain admin user on the machine \\server
- -p password → password of the user
- -c → copies wuInstall on the remote system
- -s → executes the command (wuinstall.exe) on the local system
How to use WuInstall with a proxy server?
- When using a proxy which needs authentifcation, the user who executes wuinstall has to have the right to access the internet via the proxy.
- When using a WSUS via proxy, the wsus should be in the proxy exception list
Does windows reboot automatically after WuInstall installed updates which need to reboot the machine?
No!
But WuInstall returns a status code, which indicates whether a reboot would be necessary or not.
There is also the /reboot-option in WuInstall (it can be used in combination with all other options). It reboots windows, after executing WuInstall, at any case. WuInstall /reboot just reboots the system, without doing anything else.
How does the /criteria option work?
For a detailled description of the query strings see MSDN Some common examples:
- WuInstall /search /criteria "IsInstalled=0 and Type='Software'": searches updates of type software, which are not yet installed (default-setting when the /criteria option is not specified)
- WuInstall /search /criteria "IsInstalled=1": searches all updates, which are already installed on the machine (here, the options /install or /download are obviously not applicable, they will have no effect)
Where does WuInstall download the updates?
The file location where WuInstall downloads the updates depends on your Windows Version and System Configuration. It is the same directory the "ordinary" Windows Update uses as well. Usually, this directory is Windows\SoftwareDistribution\Download
Does WuInstall work with Windows 7?
Yes, WuInstall has been tested with Windows 7, 32-bit and 64-bit, and it works just as well as with all other Windows versions. We recommend to run WuInstall as administrator to avoid troubles with access rights.
WuInstall exits with error code 0x8024400A, why?
This Problem sometimes occurs with new Windows XP SP 3 Machines, when the Windows Update Agent is not properly installed.
Just download according to http://support.microsoft.com/kb/949104 the latest Version of the Windows Update Agent and install it
How to search for special Updates or how to use Regular Expressions for /match /nomatch?
If you want to select special Updates by using regular expressions (e.g for the switches /match or /nomatch), then have a look at the following URL for Perl - Style regular expressions: http://www.cs.tut.fi/~jkorpela/perl/regexp.html.
Example:
- WUInstall /install /nomatch "(Internet Explorer).*8 ":
Install all Updates except the ones for the Internet Explorer 8.
WuInstall exits with error code 0x80072EFD, why?
This error usually indicates a connection problem. There is no connection to the WSUS or to the Windows Update Server. Probably, the WSUS - address is just configured incorrectly or there are proxy problems.
See also http://support.microsoft.com/kb/836941/en-us
|