The scripting sample in this topic shows you how to use Windows Update Agent (WUA) to scan, download, and install updates on a Server Core installation.

http://msdn.microsoft.com/en-us/library/aa387102(VS.85).aspx