Check Installed BizTalk Server 2016 Cumulative Updates

Information about all installed BizTalk Cumulative Updates on the Server (see here). 
Now it is time to update this script to BizTalk Server 2016.

Checking what CU are installed it is not a difficult task to do, but without a doubt it is one of the most annoying task to do as an administrator because, and once again:
  • You can do it manually by checking “Control PanelProgramsPrograms and Features” and then view the “Installed Updates”, try find them in the list can be sometimes very confuse because they are not organized in a category BizTalk;
  • Or rely in tools like BizTalk MsgBoxViewer, which sometimes are not up to date, to check and provide that information;
Probably there are other ways, nevertheless, this simple task should be simple, extremely easy and fast to do, what you really want to know is what are the BizTalk Cumulative Updates installed like:
1
2
This is the list of BizTalk Cumulative Update installed in this machine: BTS2016LAB01
- Microsoft BizTalk Server 2016 CU1
To check if the last Cumulative is installed or not.

PowerShell script overview

So how can we easily automate tasks? and reuse them whenever necessary and at the same time 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 in automating repetitive tasks or tasks that are time consuming to perform manually.

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 2016 cumulative updates installed in your server:
1
2
3
4
5
6
7
8
9
$keyResults = Get-ChildItem -path HKLM:SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall -Recurse -ErrorAction SilentlyContinue | where { $_.Name -match $CUNameTemplate}
foreach($keyItem in $keyResults)
{
    if ($keyItem.GetValue("DisplayName") -like "*$CUNameTemplate*")
    {
        write-host "-" $keyItem.GetValue("DisplayName").ToString().Substring(0,$keyItem.GetValue("DisplayName").ToString().IndexOf(" CU")+4)
    }
}

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

Download: Check what BizTalk Server 2016 Cumulative Updates are installed with PowerShell

Original Post: https://sandroaspbiztalkblog.wordpress.com/2017/02/03/how-to-check-what-biztalk-server-2016-cumulative-updates-are-installed-in-your-servers-with-powershell/

Leave a Reply

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