首页 > 解决方案 > 术语“Connect-PartnerCenter”未被识别为 cmdlet、函数、脚本的名称

问题描述

我想使用 power shell 登录微软合作伙伴中心..所以我安装了相关模块:-

PS C:\WINDOWS\system32> Install-Module -Name PartnerCenter -AllowClobber -Scope AllUsers

但是当我尝试连接到合作伙伴中心时,我收到了这个错误:-

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

标签: azurepowershellazure-powershell

解决方案


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

在 Windows 上的 PowerShell 5.1 中运行合作伙伴中心 PowerShell:

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

我在新的 win10 机器(azure vm)上完成了它,工作正常。


推荐阅读