How to check what BizTalk Server 2010 Cumulative Updates are installed in your Servers with PowerShell

  • Sandro Pereira
  • Feb 6, 2017
  • 3 min read

We all need to maintain old environments from time to time, and this was one of those days for me. I had to work with BizTalk Server 2010, and the first task was clear: check and install the latest Cumulative Updates for both BizTalk Server and the BizTalk Adapter Pack.

After publishing my previous post, How to check which BizTalk Server 2016 Cumulative Updates are installed on your Servers with PowerShell, I decided to adapt the script. This time, I focused specifically on BizTalk Server 2010 and shared it with the community.

This script differs slightly from the 2016 version. Starting with BizTalk Server 2013 R2, Microsoft bundles cumulative updates for BizTalk Server, Adapter Pack, and Accelerators into a single download. However, earlier versions—such as BizTalk Server 2010—use separate cumulative updates for BizTalk Server and the Adapter Pack.

📝 One-Minute Brief

This post explains how BizTalk administrators can use a PowerShell script to quickly identify which BizTalk Server 2010 cumulative updates and adapter pack updates are installed on a server, avoiding manual and error‑prone checks.

PowerShell script overview

So how can we easily automate tasks? and reuse them whenever necessary, while saving significant time for other tasks?

Using PowerShell is a good option. Windows PowerShell is a Windows command-line shell designed especially for system administrators and can be used by BizTalk administrators to help them automate repetitive tasks or tasks that are time-consuming to perform manually.

PowerShell to check what BizTalk Server 2010 Cumulative Updates are installed in your Servers with PowerShell

This is a simple script that allows you to configure the template name of the cumulative updates, which will change from version to version, and will give you the list of all BizTalk Server 2010 cumulative updates installed on your machine:

This is the list of BizTalk Cumulative Update installed in this machine: BTS2010LAB01
- Biztalk Adaptor Framework 2010 CU1
- Microsoft Biztalk Server 2010 CU1
- Microsoft BizTalk Server 2010 CU2
- Microsoft BizTalk Server 2010 CU3
- Microsoft BizTalk Server 2010 CU4
- Microsoft Biztalk Server 2010 CU5
- Microsoft Biztalk Server 2010 CU6

The sample script (the link to the full script is available at the end of this post):

if($keyResults.Count -gt 0)
{
    write-host "This is the list of BizTalk Cumulative Update installed in this machine: $env:computername"
}
else
{
    write-host "There is the no BizTalk Cumulative Update installed in this machine: $env:computername"
}     

foreach($keyItem in $keyResults)
{
    if (($keyItem.GetValue("DisplayName") -like "*$CUNameTemplate*") -or ($keyItem.GetValue("DisplayName") -like "*$CUAdapterNameTemplate*"))
    {
        write-host "-" $keyItem.GetValue("DisplayName").ToString().Substring(0,$keyItem.GetValue("DisplayName").ToString().IndexOf(" CU")+4)
    }
}

Download

THIS POWERSHELL IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND.

You can download Check what BizTalk Server 2010 Cumulative Updates are installed with PowerShell from GitHub here:

Hope you find this helpful! If you liked the content or found it useful and would like to support me in writing more, consider buying (or helping to buy) a Star Wars Lego set for my son. 

Thanks for Buying me a coffe
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

3 thoughts on “How to check what BizTalk Server 2010 Cumulative Updates are installed in your Servers with PowerShell”

    1. You only need the last one installed. The last one will have all the updates. For example, if you install CU 4 it will have CU1, 2, and 3 included

Leave a Reply

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

The Ultimate Cloud
Management Platform for Azure

Supercharge your Azure Cost Saving

Learn More
Turbo360 Widget

Back to Top