我想使用最新的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