Using BizTalk Poweshell Extensions to List/Start/Stop SendPorts, ReceivePorts…

Here are some samples you can use to list, start/stop, enable/disable, enlist/unenlist and so on your Send Ports, Receive Ports, and Recieve Locations. Note the path hierarchy. You must specify you application name. I’m using “BizTalk EDI Application” since anyone with EDI installed will have the same results. Sample Script cls Add-PSSnapIn -Name BiztalkFactory.PowerShell.Extensions  #NOTE: Must […]

List/Start/Stop Host Instances with Biztalk Powershell Extensions

When dealing with Host Instances, you must specify the fully-qualified name, or use a couple of tricks I show in this blog. I’ve been setting up some pre-canned scripts that I can just open when needed, and that have already been tested. Today I was looking at listing, starting, and stopping BizTalk Host Instances. Powershell […]

Update Adapters with Host Names in BizTalk Powershell Extensions

After you add Host and Host-Instances to BizTalk, they are not useful and cannot be associated with Send/Receive ports until you relate the Host to the Adapter. This can be done in BizTalk Admin Console, but below is a program that allows you to do it with the BizTalk Powershell Extensions. See related script to […]

How to set Isolated vs In-Process when creating BizTalk Host with Powershell

The following shows how to set the $HostType for the BizTalk Powershell Extensions. if ($HostType -eq "Isolated")    {      $HostTypeCode = 2  #Isolated    }    else    {      $HostTypeCode = 1  #In-Process    } $temp = New-Item -path $hostName -HostType:$HostTypeCode -NtGroupName:$myNTHostGroupName -AuthTrusted:$AuthTrusted See full function in this blog about Adding BizTalk Hosts and Hostinstances […]

BizTalk PowerShell Extensions not Found (not Installed)

Error: No snaps-ins have been registered for Windows PowerShell You run the following: <pre>cls Add-PSSnapIn -Name BiztalkFactory.PowerShell.Extensions  #NOTE: Must be in 32-bit version of Powershellto use this SnapIn </pre>   And you get this error: <pre>Add-PSSnapIn : No snap-ins have been registered for Windows PowerShell version 3. </pre> First – make sure you are using a […]

BizTalk Pipeline Component Won’t Go into Debug Mode in Visual Studio Debugger

The following may help with a variety of custom pipeline component issues, including why your “Debug” is not catching when you expect it to. There were times today, where I would do “Debug Attach” to the BizTalk Host Instance, and the component would never go into debug mode. 1. Check that date/time of the .DLL […]

BizTalk 2016 – Could not load file or assembly ‘WinSCPnet, Version=1.2.10.6257

Error: The adapter failed to transmit message going to send port “sp_Test_SFTP” with URL “sftp://sftp.mycompany.com:22/%MessageID%.xml”. It will be retransmitted after the retry interval specified for this Send Port. Details:”System.IO.FileLoadException: Could not load file or assembly ‘WinSCPnet, Version=1.2.10.6257, Culture=neutral, PublicKeyToken=2271ec4a3c56d0bf’ or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500) File name: ‘WinSCPnet, Version=1.2.10.6257, Culture=neutral, […]

BizTalk Pipeline Component Unzip and Select Only Files Matching Mask

I started with this excellent working unzip pipeline component here (by Rui Machado). I made the following changes to that code: 1) Put it in MyCompany.Common.etc… namespace and project (not shown here) 2) Added a Property Bag Item called FileMask (and a one for future use called “ParmReserved1” (this is standard coding, so I didn’t […]

BAM Issues in BizTalk 2016

I have documented some of the questions/issues in this BAM issues post in StackOverflow. BAM Activity shows BAM.xla “variable not defined” Error in Excel on lvwTraces I found the solution for this in this blog: “BAM ‘variable not defined” Error in Excel“.  But for some reason, that blog doesn’t come up at the top of […]