This will be the first PowerShell sample in a series of samples that I will do on this topic addressing some of the real case scenarios that we may face daily:

Exporting a BizTalk Server Application binding is, at first sight, a simple and quick task that can be done using the BizTalk Server Administration Console. But even in simple tasks we may encounter challenges that require us to perform some monotonous and boring manual operations that consume some of our precious time and are always subject to failures.

With this sample I can easily:

 

PowerShell
Edit|Remove
$xml = [xml](Get-Content"$bindingfilePath$appName.BindingInfo.xml") 
     
        # QA Binding Info Generation$xml.SelectNodes("//Host"| % {  
            $_.NtGroupName = $global:qaNTGroupName 
        } 
        $xml.Save("$bindingfilePath$appName.QA.BindingInfo.xml") 
 
        # PRD Binding Info Generation$xml.SelectNodes("//Host"| % {  
            $_.NtGroupName = $global:prdNTGroupName 
        } 
        $xml.Save("$bindingfilePath$appName.PRD.BindingInfo.xml")

 

THIS POWERSHELL IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.

About Me

Sandro Pereira
DevScope | MVP & MCTS BizTalk Server 2010
https://blog.sandro-pereira.com/ | @sandro_asp