I’ve been testing out Server 2012 and at one occasion I wanted to install WSUS role on my test server. The installation went smoothly but the post install configuration failed miserably with cryptic errors in the setup log.
I tried with many things suggested on the net… Both with internal and external database, but always failed.
One solution that worked for me is doing a manual installation and performing the post installation configuration with PowerShell. How the heck does this makes a difference – ask Microsoft.
Here is how to install WSUS with external database. I already installed SQLExpress on the machine so why not use it 🙂
Install-WindowsFeature -Name UpdateServices-Services,UpdateServices-DB -IncludeManagementTools
Running post installation configuration form PowerShell (wsusutil.exe is at C:\Program Files\Update Services\Tools):
.\wsusutil.exe postinstall SQL_INSTANCE_NAME="HOSTNAME\SQLEXPRESS" CONTENT_DIR=C:\WSUS
For those interested to use Windows Internal Database, just run:
Install-WindowsFeature -Name UpdateServices -IncludeManagementTools
As same as before, after installation run post install configuration by issuing:
.\wsusutil.exe postinstall CONTENT_DIR=C:\WSUS
Of course replace “HOSTNAME\SQLEXPRESS” with your DB instance, and path to your content dir.