采得百花成蜜后,为谁辛苦为谁甜。这篇文章主要讲述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‘
【Biztalk Stop all applications (powershell)】#=== 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++
}
推荐阅读
- 让AutoMapper在你的项目里飞一会儿(转)
- android入门--环境搭建
- (超级容易)android studio 连接手机模拟器
- 《Gradle权威指南》--Android Gradle高级自定义
- android FloatingActionButton
- android------eclipse运行错误提示 Failed to load D:Androidsdkuild-tools26.0.0-previewlibdx.jar
- 前端工程师的新选择WebApp
- C++ invoke apply visit
- Android基础之自定义Application