MicrosoftWindowsWSUS

Script to install Windows Updates automatically

Occasionally I have to build a one-off server – a server that doesnt fit our existing defaults. When I do this, I like to start with a fresh install from media, patch the system, and then install whatever app I need. However, the installation of patches can become a tedious bore that sucks your time away.

A little searching and I found a simple vbscript at http://msdn.microsoft.com/en-us/library/aa387102%28VS.85%29.aspx that searches, downloads, and installs all applicable updates for your system. running it is simple:

  1. Go to http://update.microsoft.com and ensure you have the latest WU agent installed
  2. Execute the vbscript
  3. Repeat until no more updates are listed

There is another option called wuinstall (http://wuinstall.com/) that uses C++ to install updates. I havnt used it yet, but it looks promising

One thought on “Script to install Windows Updates automatically

Leave a Reply