Question

Q: Trying to install program using Powershell and getting this error

PS C:\WINDOWS\system32> Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «»

WARNING: Unable to download the list of available providers. Check your internet connection.

WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''.

Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. The package provider requires 'PackageManagement' and 'Provider' tags. Please check if the specified package has the tags.

At line:1 char:1

+ Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (Microsoft.Power...PackageProvider:InstallPackageProvider) [Install-PackageProvider], Exception

    + FullyQualifiedErrorId : NoMatchFoundForProvider,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackageProvider

Any help would be greatly appreciated



What is the Powershell script which you were trying to execute?

Also are you trying to run this through Powershell (Admin) or not?
Regards
www.eforexcel.com

Timezone: UTC+05:30, PST+12:30
Availability Hours (UTC) : 05:00 AM - 06:00 PM

Did this solve your problem?

Sorry this didn't help.


this is the input

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

and it is being ran as admin

 

Did this solve your problem?

Sorry this didn't help.


Look into below for a possible solution

https://stackoverflow.com/questions/16657778/in...
Regards
www.eforexcel.com

Timezone: UTC+05:30, PST+12:30
Availability Hours (UTC) : 05:00 AM - 06:00 PM

Did this solve your problem?

Sorry this didn't help.


Well, I had the same problem. Set my Powershell to TLS 1.2 and it worked for me.

To test this :

1. Open Powershell (As Admin)

2. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

3. Try it again!

Niels Weistra

Did this solve your problem?

Sorry this didn't help.

6 people were helped by this reply


Well, I had the same problem. Set my Powershell to TLS 1.2 and it worked for me.

To test this :

1. Open Powershell (As Admin)

2. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

3. Try it again!

Niels Weistra

The solution mentioned above is a workaround, to solve your issue permanently

1. Open Powershell and check for supported protocols by using[Net.ServicePointManager]::SecurityProtocol


2. Run the following 2 cmdlets to set 
.NET Framework strong cryptography registry keys:

  • Set strong cryptography on 64 bit .Net Framework (version 4 and above)

    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

    set strong cryptography on 32 bit .Net Framework (version 4 and above)

    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

3. Restart Powershell and check again for supported protocol by using [Net.ServicePointManager]::SecurityProtocol

Niels Weistra

Did this solve your problem?

Sorry this didn't help.

2 people were helped by this reply


Thank you Neils, that worked!!!

Did this solve your problem?

Sorry this didn't help.


 
Question Info

Views: 313 Last updated: June 13, 2018 Applies to: