使用 PowerShell 解除 BizTalk 业务流程的绑定
使用 PowerShell 解除编排绑定的最简洁方法是什么?
我想要一个可以在 32 位和 64 位平台上运行的东西。
我知道我可以加载和使用 Microsoft.BizTalk.ExplorerOM 程序集(使用“Start-Job -RunAs32”之类的内容强制使用 32 位模式)并执行类似于此处解释的操作: microsoft.com/en-us/library/dd792703%28v=bts.10%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd792703(v=bts.10).aspx
但我想找到更好的东西。
What is the cleanest way to unbind an orchestration using PowerShell?
I'd like to have something that works on both 32bit and 64bit platform.
I know I can load and use the Microsoft.BizTalk.ExplorerOM assembly (forcing 32bit mode with something like "Start-Job -RunAs32") and do something similar to what is explained here: http://msdn.microsoft.com/en-us/library/dd792703(v=bts.10).aspx
But I'd like to find something better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到您链接的示例脚本正在从 GAC 加载此 DLL:
我不熟悉此程序集,但如果它在 GAC 中预编译为 x86,那么您需要使用 32 位 PowerShell 加载它(在 64 位上时) Windows系统)。在您的脚本中,您可以检查 PowerShell 进程位数:
如果您的脚本未以正确的位数运行,我可以想到三件事:
重新启动您的脚本使用 32 位 PowerShell 的脚本(如果您的脚本有参数则无法正常工作):
I see the sample script you linked is loading this DLL from the GAC:
I'm not familiar with this assembly but if it's pre-compiled to x86 in the GAC then you'll need to load it with 32bit PowerShell (when on a 64bit Windows system). In your script you can do a check to see what PowerShell process bitness is:
If your script is not running in the right bitness there's three things I can think of:
Re-launch your script using 32 bit PowerShell (doesn't work well if your script has params):