Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Basically, you can do three things with WuInstall: 

  •  Searching for Updatesupdates: 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 to get "Important"

...

updates only?

To get the same updates as you get when selected "Important" Updates updates on the windows update page, please try the following criteria option:

...

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 /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)

Why are

...

updates marked as hidden also installed?

The default criteria option (see above) includes hidden and non-hidden updates. If you add “IsHidden=0” then the updates you marked as hidden will be skipped. An example would be: WuInstall /install /criteria "IsInstalled=0 and Type='Software' and IsHidden=0"

...

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.

How to search for special

...

updates or how to use Regular Expressions for /match /nomatch?

If you want to select special Updates 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.

...

WUInstall /install /nomatch "(Internet Explorer).*8 ": 

Installs all Updates updates except the ones for the Internet Explorer 8.

...

/disable_ie_firstruncustomize /quiet /disableprompt 
  •  /install ... installs the update 
  •  /match "Internet Explorer 8" ... Filters only for Updates updates with title matching "Internet Explorer 8" 
  •  /autoaccepteula ... Accepts any EULAs automatically (suppress user interaction on that) 
  •  /disable_ie_firstruncustomize ... Disables the internet explorer 8 set up dialog. 
  •  /quiet ... The update-installer is forced to do an installation without user interaction 
  •  /disableprompt ... Disable showing source prompts to a user when installing the updates

...

When using Windows XP it might cause problems using the "run as" command together with WuInstall. To prevent this you should use the /quiet and /disableprompt option on the end of your command.

Windows 7 Service Pack 1 installation fails, why?

 Do you use the option /quiet when executing WuInstall? The installation of Windows 7 Service Pack 1 with the option /quiet could cause some error. Please try to execute WuInstall without /quiet.

 Installation of updates with WuInstall does not work on my Windows XP machine, why?

...

Then just add the parameters /quiet /disableprompt to your WuInstall call - this should fix the issue.

...