我想使用最新的Azure Powershell库中的功能,但我正在努力安装它。这在AWS x64 Windows 2012 R2 Standard服务器上。无法找到“SoftwareIdentity”的重载
我收到以下错误
PS C:\Users\Administrator> Install-Module -Name AzureAD
WARNING: Cannot find an overload for "SoftwareIdentity" and the argument count: "17".
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'AzureAD'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSModule.psm1:1809 char:21
+ $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Ex
ception
+ FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
这是PSVersion = 4.0
GET-模块显示:3.1.0.0 Microsoft.PowerShell.Management,3.1.0.0 Microsoft.PowerShell.Utility脚本, 1.1.1.0 PackageManagement脚本,1.1.2.0 PowerShellGet
GET-PSRepository显示PSGallery不可信https://www.powershellgallery.com/api/v2/
你^ h请指点任何帮助排除故障/修复? 感谢
是不是PS4的'Install-Package'?另外,您可能需要升级到PS5 ... – 4c74356b41
'PS C:\ Users \ Administrator>安装包AzureAD 警告:找不到“SoftwareIdentity”的超载和参数计数:“17”。 安装包:找不到指定搜索条件和包名称“AzureAD”的匹配项。 在行:1个字符:1 +安装-封装AzureAD + ~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:ObjectNotFound:(Microsoft.Power。 ... InstallPackage:InstallPackage)InstallPackage],防爆 ception + FullyQualifiedErrorId:NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage' – happyolly
您是否可以用'查找-模块AzureAD'找到模块,然后到'Install-Module'的管道? – TheMadTechnician