Biztalk: Delete ReceiveLocation using WMI and VBScript
The default samples that are shipped with the Biztalk SDK do not contain code to delete a ReceiveLocation. Here is something I've written that will delete a ReceiveLocation, specified on the command line. Please note that: this is a very-very basic script (e.g. no checks on primary ReceiveLocation) I know nothing about VBScript, so if you want parts of it nominated as a WTF , go ahead, make my day ;) Option Explicit RemoveRecLoc Sub RemoveRecLoc() Dim objArgs: Set objArgs = WScript.Arguments 'error handling is done by explicity checking the err object rather than using 'the VB ON ERROR construct, so set to resume next on error. 'on error resume next Dim strReceiveLocation strReceiveLocation = objArgs(0) Dim InstSet, Inst set InstSet = GetObject ("winmgmts:\root\MicrosoftBizTalkServer")...