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

I think we all need to maintain old environments and this was one of these days for me – BizTalk Server 2010 – and the first thing I needed to do was to check and install the latest Cumulative Updates for BizTalk Server and BizTalk Adapter Pack.

Following my last post, How to check what BizTalk Server 2016 Cumulative Updates are installed in your Servers with PowerShell, I decided to change the script, this time creating one focused on BizTalk Server 2010 and share with the community.

This script is a little different from the 2016 version because, since BizTalk Server 2013 R2, Cumulative Updates for BizTalk Server, Adapter Pack, and Accelerators are all part of a single download. In earlier versions, such as BizTalk Server 2010, there were dedicated versions for BizTalk Server and BizTalk Adapter Pack.

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, that 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:

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 *

turbo360

Back to Top