Biztalk Stop all applications (powershell)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Biztalk Stop all applications (powershell)相关的知识,希望对你有一定的参考价值。
#=== Make sure the ExplorerOM assembly is loaded ===#
#=== Connect to the database, this script is designed to run under powerhsell as x86 since ExpolorerOM only supports 32bit. ===#
$databaseName = ‘BizTalkMgmtDb‘
$databaseServer = ‘WINDOWS-5N3ZH2K\BTSSQLSERVER‘
$Catalog = New-Object Microsoft.BizTalk.ExplorerOM.BtsCatalogExplorer
$Catalog.ConnectionString = ‘SERVER=‘+$databaseServer+‘;DATABASE=‘+$databaseName+‘;Integrated Security=SSPI‘
#=== Gather all the apps and stop them ===#
$number = $Catalog.Applications.Count
write-host $number
$i = 1
foreach($app in $Catalog.Applications)
{
Write-Host "Issuing stop command for application "$i"\"$number"..."
$app.Stop([Microsoft.BizTalk.ExplorerOM.ApplicationStopOption] "StopAll")
$Catalog.SaveChanges()
$i++
}
以上是关于Biztalk Stop all applications (powershell)的主要内容,如果未能解决你的问题,请参考以下文章
linux平台 spark standalone集群 使用 start-all,stop-all 管理集群的启动和退出
出现make: *** No rule to make target `all'. Stop.解决办法