Search code examples
c#biztalkbiztalk2006r2

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.


Solution

  • 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.