Is there a way to automate turning a BizTalk Receive Location on or off through code?

Andrew Dunaway picture Andrew Dunaway · Oct 4, 2009 · Viewed 7k times · Source

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.

Answer

tomasr picture tomasr · Oct 4, 2009

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.