For a current client project we are using the excellent BizTalk Deployment Framework for deploying our BizTalk applications. This works great, except it can be difficult to get the tracking flags set correctly for testing and production environments.
Ideally you would want to have tracking disabled by default in Production environments and enabled for Test/Local Dev environments to aid with debugging message content.
I was sent a link to an article on Sandro’s blog that shows a PowerShell script for disabling tracking for all BizTalk applications.
This was very useful, but I also needed the ability to turn tracking on and potentially for a subset of BizTalk Applications.
I have tweaked the PowerShell script and ended up with what you see below. Feel free to use this in your environment and let me know if there are improvements I can make.
DISCLAIMER: Use this script at your own risk. While it is highly unlikely this will break anything, if it does I can not be held responsible!