BizTalk Server Tutorials and Solutions Skip to main content

Posts

Showing posts from June, 2018

PowerShell script to start and stop all host instances with some filter condition

In below following complete PowerShell script is to start and stop all BizTalk host instances. There is a filter condition with '-notlike' powershell command where if you want to avoid host instance by the host name. There are two functions one is for start host instance and second one is for stop host instance. You go ahead and use accordingly your requirement. # Import external assembly and create a new object [ void ] [ System.reflection.Assembly ]:: LoadWithPartialName( "Microsoft.BizTalk.ExplorerOM" ) $Catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer   #BizTalk Config $Catalog . ConnectionString = "SERVER=JEETU;DATABASE=BizTalkMgmtDb;Integrated Security=SSPI"   #connectionstring for the BizTalkMgmtDb $Hostinst = "" # Define variable for host instances $resultToWrite = "" $OutResultLog = 'E:\Biztalk\BizTalkLive\BizTalkPowerShellService\StartStopHostInstnace\logStartStopHostInsta...