Is there a way to automate turning a BizTalk Receive Location on or off through code?
Is there a way to automate the turning on or off of a Receive Location in BizTalk? It seems like there should be some kind of API or some such for this kind of thing. I would prefer to work in C#, but WMI or some kind of script would work too. Besides ExplorerOM, as you've found out, you can also enable/disable receive locations (and control send ports) using WMI. I have a sample PowerShell script that shows how to do those things here , if you're interested. I found a solution. It appears that the Microsoft.BizTalk.ExplorerOM.dll is what I wanted. Here is an excerpt from the BizTalk