导入模块失败

时间:2016-02-18 04:45:24

标签: powershell powershell-v3.0 servicebus windows-server-2012-r2

我正在使用Windows服务器的服务总线。当试图打开服务总线命令promt时,得到以下错误。有谁可以帮我解决这个问题?

Import-Module : The specified module 'ServiceBus' was not loaded because no valid module file was found in any module directory.

enter image description here

2 个答案:

答案 0 :(得分:0)

没有确切的根本原因,但在leaving the service bus farmjoining back the existing farm之后,上述问题已得到解决。

答案 1 :(得分:0)

此错误的另一个原因是权限。确保将Execution-Policy设置为所需级别,并使用管理权限运行PowerShell窗口,以便脚本不会被阻止。

相关问题