So that is what this tutorial is about: a script that automates this process, hands and worry free.
To script it, I am not going to use the built-in-windows wuauclt.exe. Although wuauclt has parameters for detection and installation, it is far less practical to use in this case (updating a newly installed computer), just think about how you should determine when to restart... Hence this tutorial.
My script relies on WUInstall.exe which is availabe for free: http://wuinstall.com/index
In short, wuinstall.exe detects, downloads and installs updates using the internal windows mechanisms, it only extends the capabilities.
Prerequisites: Setup your WSUS server and tell the clients about it.
So first, we download wuinstall.exe (included in http://www.hs2n.at/compone
Executing user: system (password to be left blank)
trigger: at system startup
Task name: wuinstall
The script will search for updates and install those and afterwards reboot the computer and start over at next logon until now updates are left. You will be informed by popup if updating is completed or if something went wrong. WUInstall has many more parameters, however most of those are exclusive to the pro version which is not free. For example, you can decide not to install everything your own WSUS offers but only patches with severity critical or drivers only. http://wuinstall.com/image
.