Save BizTalk suspended messages body/payload to file, using Powershell and BizTalk API

Created a powershell script that's able to save body/payload of specific suspended messages in BizTalk.

The script is using the BizTalk API to look for messages, based on a filter set by operator, to retrieve the body.

Additional information on how to use the script may be found under "Instructions" in the first main comment section of the script.


  1. Great work; thanks a lot.
    The script runs in our environment with only one minor change:
    Service name is too long to be archive folder name.
    I use a substring(0,15) of $ServiceName to create the folder.

  2. Thanks for the feedback, Jost! Glad you managed to tweak it for your environment.