22. 08. 2017 Alessandro Romboli NetEye

Upgrading your Windows computers with WSUS? Here’s a guideline.

Upgrade_WSUS
Windows Server Update Services (WSUS) is an application developed by Microsoft that enables administrators to manage the distribution of updates for Microsoft products to computers in a corporate environment.

The first version of WSUS was known as Software Update Services (SUS) and was created in 2005. Only after 2008 it was distributed as an installable server role.

WSUS manages the update catalog for Windows components and other Microsoft products, the approval cycle, as well as the distribution of updates on a local network. However, it has no control over when and how such updates are applied to the target computers: even with this limit, WSUS is the ideal solution because it is free and easier to manage than the System Center Configuration Manager, a product that can both force and centrally control the distribution of updates.

WSUS Service Issues

From its earliest versions, the WSUS service required significant disk space, on the order of at least 100 GB. Over time, the situation got worse mainly due to the increasing number of Microsoft products and, above all, due to the frequency of release updates, mainly for security issues.

Monitoring systems trace the constant increase in disk space occupied by WSUS:

WSUS1

This disk space is occupied by updates that are approved (manually or automatically) by the WSUS Console.

There is also an even more serious problem: WSUS responds more and more slowly over time and the Console will finally disconnect intermittently and no longer respond to commands. What’s worse Clients will no longer be able to download new updates given the lack of storage space.

This situation is due to the non-optimized management of the database that WSUS uses to store all update information.

In the latest versions of WSUS, the default database used is WID (Windows Internal Database), located at the following path C:\Windows\WID\Data. Curiously, the database still keeps the old product name, SUSDB!

WSUS2

It is important to monitor the SUSDB size because starting when it exceeds the 7-8 GB you will begin to experience your first issues with WSUS.

Causes of Database Growth

There are three main causes for the growth of the SUSDB Database:

  • The tbEventInstance table that collects system events
  • Superseded upgrades and Itanium processors
  • Failure to clean WSUS

The tbEventInstance table may contain a very large number of rows if the WSUS is not periodically cleaned. Below you can see a normal situation with just a few thousand lines:

WSUS3

One important factor to consider is the abandonment of Superseded upgrades and Itanium Processors (if you do not use the Itanium technology!): Unfortunately, WSUS does not offer a simple way to do this, so it’s best to use a PowerShell script.

Only after the superseded upgrades are declined, you can see sufficient space in your database!

You can clean up your WSUS instance from the console with the Server Cleanup Wizard or via a PowerShell script:

WSUS4

A more efficient WSUS

To get an efficient WSUS it is necessary to:

  • Keep track of both disk space growth and SUSDB database growth
  • Schedule Powershell scripts for declining superseded upgrades
  • Schedule Powershell scripts for WSUS cleanup, with a SUSDB database repository and for disk space release

By following these steps, you can keep the disk space occupied by WSUS under 100 GB.

Alessandro Romboli

Alessandro Romboli

Site Reliability Engineer at Würth Phoenix
My name is Alessandro and I joined Würth-Phoenix early in 2013. I have over 20 years of experience in the IT sector: For a long time I've worked for a big Italian bank in a very complex environment, managing the software provisioning for all the branch offices. Then I've worked as a system administrator for an international IT provider supporting several big companies in their infrastructures, providing high availability solutions and disaster recovery implementations. I've joined the VMware virtual infrastructure in early stage, since version 2: it was one of the first productive Server Farms in Italy. I always like to study and compare different technologies: I work with Linux, MAC OSX, Windows and VMWare. Since I joined Würth Phoenix, I could also expand my experience on Firewalls, Storage Area Networks, Local Area Networks, designing and implementing complete solutions for our customers. Primarily, I'm a system administrator and solution designer, certified as VMware VCP6 DCV, Microsoft MCP for Windows Server, Hyper-V and System Center Virtual Machine Manager, SQL Server, SharePoint. Besides computers, I also like photography, sport and trekking in the mountains.

Author

Alessandro Romboli

My name is Alessandro and I joined Würth-Phoenix early in 2013. I have over 20 years of experience in the IT sector: For a long time I've worked for a big Italian bank in a very complex environment, managing the software provisioning for all the branch offices. Then I've worked as a system administrator for an international IT provider supporting several big companies in their infrastructures, providing high availability solutions and disaster recovery implementations. I've joined the VMware virtual infrastructure in early stage, since version 2: it was one of the first productive Server Farms in Italy. I always like to study and compare different technologies: I work with Linux, MAC OSX, Windows and VMWare. Since I joined Würth Phoenix, I could also expand my experience on Firewalls, Storage Area Networks, Local Area Networks, designing and implementing complete solutions for our customers. Primarily, I'm a system administrator and solution designer, certified as VMware VCP6 DCV, Microsoft MCP for Windows Server, Hyper-V and System Center Virtual Machine Manager, SQL Server, SharePoint. Besides computers, I also like photography, sport and trekking in the mountains.

Leave a Reply

Your email address will not be published. Required fields are marked *

Archive