Azure 术语';连接PartnerCenter';无法识别为cmdlet、函数、脚本的名称

Azure 术语';连接PartnerCenter';无法识别为cmdlet、函数、脚本的名称,azure,powershell,azure-powershell,Azure,Powershell,Azure Powershell,我想使用power shell登录到Microsoft Partner center。。因此,我安装了相关模块:- PS C:\WINDOWS\system32> Install-Module -Name PartnerCenter -AllowClobber -Scope AllUsers 但是,当我尝试连接到partner center时,出现以下错误:- PS C:\WINDOWS\system32> Connect-PartnerCenter Connect-Partner

我想使用power shell登录到Microsoft Partner center。。因此,我安装了相关模块:-

PS C:\WINDOWS\system32> Install-Module -Name PartnerCenter -AllowClobber -Scope AllUsers
但是,当我尝试连接到partner center时,出现以下错误:-

PS C:\WINDOWS\system32> Connect-PartnerCenter
Connect-PartnerCenter : The term 'Connect-PartnerCenter' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Connect-PartnerCenter
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Connect-PartnerCenter:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我想纯粹的要求只有以下两个:

要在Windows上的PowerShell 5.1中运行Partner Center PowerShell,请执行以下操作:

如果需要,请更新到Windows PowerShell 5.1。如果您使用的是Windows 10,则已安装PowerShell 5.1。 安装.NET Framework 4.7.2或更高版本


我是在新的win10机器(azure vm)上完成的,运行良好。

安装模块后,您是否在代码中导入模块PartnerCenter?@Theo将收到此错误
导入模块:指定的模块“PartnerCenter”未加载,因为在任何模块目录中都找不到有效的模块文件。
您是否为以管理员身份运行的所有用户运行了
安装模块
?@Theo yes已关闭关闭所有powershell会话,然后再次尝试连接PartnerCenter,是否有效?