WSUS 3.0 SP2 update problems (KB2720211)

I have been having problems with a Windows Server Update Services server that I administer.  The problem is that the latest update as of this writing (KB2720211) for version 3.0 SP2 of WSUS repeatedly fails install.  After it fails the first time the WSUS admin console will no longer load.

I tried a few fixes found online including one that purports to scan the Windows Internal Database (default install option if your server doesn't have SQL Server installed) and try to repair it.  None of which worked.


Upon diligent searching I found a solution to change the following registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Update Services\Server\Setup\wYukonInstalled to 0 and the update finally installed. This, I believe, tells it to disregard the database.  Then set the wYukonInstalled key back to 1, run the WSUS update again and it may work.  For me, however, it did not; perhaps, due to the afore mentioned database script.  The Update Services MMC snap-in still just hung upon launching it.

So, for me, I had to remove the Update Services role; choosing to remove the database and all updates to avoid any further complications.  I was then able to reboot and re-add the Update Services role and everything seems to be ok.  If I have it to do again, I will probably try to use something other than the windows integrated database.

Addendum 05_29_2013
One more thing that I have run across that might have helped me solve the situation (or avoid it in the first place) is that, according to the page at this link: http://technet.microsoft.com/en-us/library/dd939795(v=ws.10)
You are supposed to re-index the database at least once a month.  I know, yet another thing you have to add to your Patch Tuesday woes right :-)  Here is what I have started doing to help maintain our WSUS servers and try to avoid a similar problem in the future:

Once a month, just  before Patch Tuesday, I re-index the Windows internal database (default option) that I chose to use when setting up WSUS.  To do this on Server2008 R2, you need to:

1.) Install sqlncli_x64.msi and then SQLServer2005_SQLCMD_x64.msi which can be found in the list of packages for "Feature Pack for SQL Server 2005" here: http://www.microsoft.com/en-us/download/details.aspx?id=15748

2.) Grab the sample script given here: http://gallery.technet.microsoft.com/scriptcenter/6f8cde49-5c52-4abd-9820-f1d270ddea61 and save it to a file named WsusDBMaintenance.sql in a known location

3.) Run an elevated command prompt (right click and run-as administrator) and then run the following command: sqlcmd -S np:\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query –i \WsusDBMaintenance.sql

***Note: this command should be typed in all together and replace with the path to where you saved your script.  Mine would be c:\scripts\wsus\WsusDBMaintenance.sql
****This will create a lot of output to the console, but just note that, aside from any egregious warnings or failure to execute properly at all, you should finally see acknowledgement that the process completed.

4.) Finally, I run the Server Cleanup wizard that removes old updates / superseded updates / computers that haven't contacted the server in over 30 days / etc.

    Comments

    Anonymous said…
    I had to do the same. All the hacks out there would not work. No patches seemed to correct it either.
    Thanks for posting though.

    Popular Posts