Hi everyone.
Been trying to bypass an error when trying to install AzureAD, AzureADPreview or even PowerShellGet from powershell.
I keep getting an error saying:
PackageManagement\Install-Package : Package ‘PackageManagement’ failed to download.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
PackageManagement\Install-Package : Package ‘AzureAD’ failed to download.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
-
- CategoryInfo : ResourceUnavailable: (C:\Users\nb1573…D\AzureAD.nupkg:String) [Install-Package], Excep
tion - FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPac
kage
PackageManagement\Install-Package : Package ‘AzureADPreview’ failed to download.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
-
- CategoryInfo : ResourceUnavailable: (C:\Users\nb1573…ADPreview.nupkg:String) [Install-Package], Excep
tion - FullyQualifiedErrorId : PackageFailedInstallOrDownload,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPac
kage
I tried the proxy credential setting (https://blogs.technet.microsoft.com/keithmayer/2016/01/06/quick-tip-using-azure-powershell-with-web-proxy-and-fiddler/) but I’m not behind a proxy. I tried to update PowerShellGet unsucessfully. I even tried download nupkg manually and then install it, also unsucessfull:
PS C:\WINDOWS\system32> Install-Module “D:\user\Downloads\azuread.2.0.2.76.nupkg”
PackageManagement\Install-Package : No match was found for the specified search criteria and module name
‘D:\user\Downloads\azuread.2.0.2.76.nupkg’. Try Get-PSRepository to see all available registered module
repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
-
- CategoryInfo : ObjectNotFound: (Microsoft.Power…InstallPackage:InstallPackage) [Install-Package], Ex
ception - FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Does any of you have any hint on what problem I might be getting?
Thanks in advance,
David