尝试在"BizTalk"提供程序上执行InitializeDefaultDrives操作失败 [英] Attempting to perform the InitializeDefaultDrives operation on the 'BizTalk' provider failed

查看:401
本文介绍了尝试在"BizTalk"提供程序上执行InitializeDefaultDrives操作失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了错误:

尝试在以下设备上执行InitializeDefaultDrives操作 "BizTalk"提供程序失败."

"Attempting to perform the InitializeDefaultDrives operation on the 'BizTalk' provider failed.".

几个月前,我开始在BizTalk Dev系统上进行此工作;刚刚安装了生产服务器,并得到了错误.

I got this working on our BizTalk Dev system several months ago; just installed the Production server today, and getting the error.

在Win 2012上使用BizTalk2016.

Using BizTalk 2016 on Win 2012.

我运行了命令:

  %windir%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
 .\BizTalkFactory.PowerShell.Extensions.dll

并且我以32位模式使用PowerShell 4:

and I'm using PowerShell 4 in 32-bit mode:

Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS C:\Users\myusername> get-pssnapin -registered


Name        : BizTalkFactory.PowerShell.Extensions
PSVersion   : 4.0
Description : Windows PowerShell CmdLets and Provider for Microsoft Biztalk Server

Name        : WDeploySnapin3.0
PSVersion   : 2.0
Description : This is a PowerShell snap-in that contains cmdlets for managing Microsoft Web Deployment infrastructure.



PS C:\Users\myusername> Add-PSSnapIn -Name BiztalkFactory.PowerShell.Extensions
Attempting to perform the InitializeDefaultDrives operation on the 'BizTalk' provider failed.
PS C:\Users\myusername> Add-PSSnapIn -Name BiztalkFactory.PowerShell.Extensions
PS C:\Users\myusername> Get-ExecutionPolicy
RemoteSigned

推荐答案

在我的开发环境中,BizTalk和SQL位于同一服务器上,但是在生产环境中,它们位于不同的服务器上.

In my Development environment, BizTalk and SQL were on the same sever, but in Production environment, they are on different servers.

显然,如果在其他服务器上,则必须添加以下行:

Apparently if on different servers, you have to add this line:

New-PSDrive -Name BizTalk -Root BizTalk:\ -PsProvider BizTalk -Instance MySqlServer -Database BizTalkMgmtDb

只需用您的服务器名称替换"MySqlServer".

Just replace "MySqlServer" with your server name.

在此处获得想法/解决方案:安装BizTalk 2013 上的BizTalkFactory PowerShell提供程序,他讨论了如何创建Profile.ps1文件.或者,可能是我在Dev中创建了Profile.ps1,却忘记了它.现在检查一下.

Got the idea/solution here: Installing the BizTalkFactory PowerShell Provider on BizTalk 2013, where he talks about creating a Profile.ps1 file. Or possibly I created that Profile.ps1 in Dev, and just forgot about it; checking on that now.

这篇关于尝试在"BizTalk"提供程序上执行InitializeDefaultDrives操作失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆