How to Check the list of all BizTalk 2013 Cumulative Updates installed in the machine with PowerShell

I wrote in my personal blog a blog post about how can you archive this same task in BizTalk Server 2013 R2. In BizTalk Server 2013 R2, BizTalk Server and Adapter Pack cumulative updates (CU) are in the same resource (same CU) – which to me, makes life easier for BizTalk Administrators, however, in BizTalk Server 2013 we have BizTalk Server and Adapter Pack CU separated in different resources, see: Service Pack and cumulative update list for BizTalk Server.

As I wrote in my other blog post, we cannot rely on documentation to be accurate, if they exist!, special regarding to the present status of the machines in the environment – I never found this kind of document that tell me what is installed on the machine, what are the updates (or CU) or service pack installed and so on… and regarding to BizTalk Server I do not remember another simple task like this – check the list of all BizTalk Cumulative Updates installed in your machine/environment – being so painful to perform!

Of course, there are some ways to check that, for example:

  • You can do it manually by checking “Control Panel\Programs\Programs and Features” and then view the “Installed Updates”, however, this can be a very annoying task and sometimes time consuming just to try find them in that huge list because they are not organized in a category BizTalk
  • You can use BizTalk MsgBoxViewer but still if you only want to check what CU are installed, or you need to analyze your entire system with this tool, or you need to uncheck all the select default queries and check only for the cumulative updates – which can also be an annoying and time consuming task

Probably there are other ways, nevertheless, I just want a quick and in very easy way, because this is a basic, common and very simple task, to know what are the BizTalk Cumulative Updates installed in my environment, like:

This is the list of BizTalk Server 2013 Cumulative Update installed in this machine: BTS2013LAB01
– Microsoft BizTalk Server 2013 CU1
– Microsoft BizTalk Server 2013 CU2

This is the list of BizTalk Server 2013 Adapter Pack Cumulative Update installed in this machine: BTS2013LAB01
– BizTalk Adapter Pack 2013 CU1

This way I know that I need to install the last CU’s available!

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.

Download this 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 cumulative updates installed in your machine:

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

Hope you enjoy,
Sandro Pereira

Legg igjen en kommentar