问题描述
我使用下面的代码来获取主机实例并重新启动它在power shell命令提示符上的工作但不能正常工作
I have used below code to get host instances and restart its working on power shell command prompt but not working
通过 脚本,它获取本地服务器主机实例不是远程biztalk服务器组
through script ,it getting local server host instances not remote biztalk server group
Enter-pssession -computername 16 -configurationname microsoft.powershell32
Remove-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
$
Add-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
set-location Biztalk:
设置位置'平台设置';
set-location'主机实例'
写主机"从16台机器获取所有主机实例"
$
Get-ChildItem
Enter-pssession -computername 16 -configurationname microsoft.powershell32
Remove-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
Add-PSSnapin -Name BizTalkfactory.PowerShell.Extensions;
set-location Biztalk:
set-location 'Platform Settings';
set-location 'Host Instances'
write-host "Getting all host instances from 16 machine"
Get-ChildItem
推荐答案
请先验证,该计算机16没有任何其他服务,而不是以"BTS"开头的主机实例。前缀: - )
Please verify first, that computer 16 don't have any other Services than your Host Instances starting with the "BTS" prefix :-)
Morten la Cour
Morten la Cour
这篇关于通过BizTalk powershell提供程序脚本重新启动远程BizTalk服务器组主机实例不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!