BizTalk Receive Location Duplicator in PowerShell

How do you create an identical copy of a BizTalk ReceiveLocation within a Receive Port? Well, it cannot be 100% identical. The name will of course have to change, the URI will have to be unique as well. I recently had a case where we wanted the same orchestration to run on two different databases […]

BizTalk SendPort Duplicator in PowerShell

How do you create an identical copy of a BizTalk SendPort except for the name? It’s not uncommon for me to want create a duplicate of a SendPort, especially if it’s a more complicated SendPort like WCF or SQL with lots of parameters. I finally wrote a PowerShell to do this. Maybe later, I’ll do […]

High Level Overview of BizTalk Binding Files – Major Sections

In BizTalk, you can export and import and export bindings to/from the BizTalk Database using the BizTalk Administration Console and/or BTSTask.exe (command line utility). The binding file has five major sections: 1) ModuleRefCollection (Orchestrations a.k.a. “Services” and Orchestration bindings) 2) SendPortCollection (Send Ports) 3) DistributionListCollection (Send Port Groups) 4) ReceivePortCollection (Receive Port and their related […]

PowerShell to split a large disk/log file

I had a huge 550 MB file, I wanted to split it into 55 or so files of 10 MB each. The one improvement I would make to this next time is to make the suffix a 3 digit number so when the files sort by name they would be in numerical order (currently _1 […]

PowerShell Search a Huge Disk or Log File for a String

You will likely get a memory error (System.OutOfMemoryException) if you use Get-Content to try to load a 550MB file into a string variable. We can using a System.IO.StreamRead in PowerShell to stream the data instead of doing one big massive load into memory. The script below allows you to search a huge file for a […]

BizTalk: SMTP – The transport error code was 0x80040217

The Full Error Was The message could not be sent to the SMTP server. The transport error code was 0x80040217 Solution I had to go to the BizTalk Adapters in BizTalk Admin Console, find the SMTP adapter, then configure it for the host. On the properties window, there is an “Authentication Type” which defaulted to […]

PowerShell Script to manage FTP/SFTP/OpenSSH log files

The script below began based on a script found in the OpenSSH GitHub forum. We had an OpenSSH log file that was about 550 MB in size. This made it hard to open in NotePad++ and difficult to find anything on a given date. Then we realized we have a similar issue (but not nearly […]

PowerShell to Split a Huge File into Smaller Files

Sometimes you have a huge large file. In my case, I encountered an OpenSSH log file that was 550 Megabytes. I will put some process in place so that it doesn’t grow so large. It contains four months of data with full debugging turned on. In such a large file, it is hard to find […]

PowerShell to MQSeries (WebSphereMQ)

I just found this sample in my archive, so decided to post it: <pre> # This demonstrates very basic MQ functionality (to a remote machine) using PowerShell # Neal Walters – 10/30/2013 Add-PSSnapin IBM.PowerShell.WebSphereMQ $qmconns = @() $qmconns += New-WMQQmgrConnDef -Name YOURNAME-HostName 10.1.3.200 -Channel YOURR.SvcChannel -Port 1415 $qmgrs = Get-WMQQueueManager -Connections $qmconns if ($qmgrs -eq […]

BizTalk 2016 – WCF-Custom Transport: Unrecognized attribute ‘ApplicationName’

I got the same error as the one in this blog: http://brucetank.blogspot.com/2017/10/biztalk-2016-wcf-custom-transport.html System.Configuration.ConfigurationErrorsException: Unrecognized attribute 'ApplicationName'. Note that attribute names are case-sensitive. The difference is that I got it run-time, where in the blog above, he got it at the time of importing the bindings. I was afraid that maybe the Cumulative Updates (CUs) were […]