Install and Configure WSUS, including:

Scripts that are also handy in terms of WSUS Server Management that cover correlated topics:

One catch is that this doesn't tell the WSUS server that it is configured.  The first time the management console is connected to the server, the configuration wizard show the wizard and Server Manager will have a warning icon that WSUS needs to be configured.

Note:  Tested on Windows Server 2008 and above.  Requires PowerShell 2.0 or above.